Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit 9aaf32d

Browse files
committed
Do not attempt to create a ROM directory on SD2 if SD2 isn't mounted
1 parent cca85ed commit 9aaf32d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

RomM/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self) -> None:
5454
self._sd1_roms_storage_path = os.environ.get("ROMS_STORAGE_PATH", base_path)
5555

5656
# Ensure the ROMs storage path exists on SD2 if SD2 is present
57-
if self._sd2_roms_storage_path and os.path.exists(
57+
if self._sd2_roms_storage_path and sd2_root_path and os.path.exists(
5858
sd2_root_path
5959
) and not os.path.exists(
6060
self._sd2_roms_storage_path

0 commit comments

Comments
 (0)