Closed Theoscar707 closed 2 years ago
Are you loading the ROM from a file manager and not via the app?
It looks like MelonDS is loading the ROM from the File Manager's temporary folder and its not able to create a save file there.
Looking at the stack trace it looks like you are opening the ROM as a ZIP file. I would advise extracting the ROM to the NDS file and loading that file inside the app.
You can use Zarchiver or RAR for Android to extract the zip.
The problem is that some devices allow the file explorer to open ZIP files and use it as a directory, when it is in fact a file. As such, save files cannot be created inside of them and the ROM fails to load. A workaround is to select the directory that contains the ZIP archive or to extract the files.
I've been trying to find a device that allows this so that I can further analyse this behaviour and prevent such directories from being selected, but I have none in my possession.
The problem is that some devices allow the file explorer to open ZIP files and use it as a directory, when it is in fact a file. As such, save files cannot be created inside of them and the ROM fails to load. A workaround is to select the directory that contains the ZIP archive or to extract the files.
I've been trying to find a device that allows this so that I can further analyse this behaviour and prevent such directories from being selected, but I have none in my possession.
It looks like they are using FileMaster to load the ROM from the zip.
To be fair its pretty typical behaviour for most file managers to cache the contents of the zip to a read-only folder, or the folder has R/W permissions but is immediately deleted as soon as the file is loaded. Depends on the file manager.
One solution you could try is giving the option (or by default considering most users will probably load ROMs from zip files) storing the save files in a directory created by MelonDS. Some other DS emulators do it this way, having a central folder that stores all save states and save files etc).
Their device (Samsung Galaxy J8) officially supports Android 9 so I would doubt this is anything to do with Android 11 if that is any possibility. I know that has broken a lot of apps.
This should be fixed in the Beta 1.7.0 release. If it doesn't allow you to select the folder with the ROMs, try extracting them.
Problem:
Insert a small description of the problem.
Stack trace:
Configuration: