Fix catalogue path initialization for non-MuOS/non-SpruceOS devices #68
+14
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Fixes the "SD1 catalogue path is not set" error that prevents ROM downloads on devices running generic EmulationStation setups (such as Knulli on PortMaster).
Why
Previously, the catalogue path was only initialized for MuOS and SpruceOS devices. Users with other devices (Knulli, PortMaster, generic ES setups) encountered a critical error when trying to download ROMs:
This left a significant portion of users unable to use the ROM download functionality, as the app would crash during download attempts.
How
The fix adds proper catalogue path initialization for all device types:
CATALOGUE_PATHenvironment variable for users who want to customize the catalogue location/app/catalogueas the default catalogue directory for non-MuOS/non-SpruceOS devicesCode Changes:
_Filesystem.__init__()inRomM/filesystem.pyTest Plan:
This change expands device compatibility and ensures all users can utilize the ROM download feature regardless of their handheld device or setup.