-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default directory of scummvm libretro in android is or can become a unreachable forbidden one #64
Comments
Can you check what happens if you:
|
/storage/emulated/0/Retroarch/system (well it appears as <default> after pressing c without reloading and if you try to add a game without reloading the core right away it selects / as its default for some bug - restarting right away instead of trying to add games fixes that). |
Ok, this part has been a little bit reworked, now if You can test current master (f6ff9f3) |
Seems like it worked (I didn't build, just updated the core in the RA android menu). |
However you can still get trapped in the file browser browser until you restart (assuming you don't know about the reset button for the last directory in the global options). Scummvm will change the default dir if you try to add a game in a unreadable dir, and you won't be able to navigate out because even cancelling or failing adding a game that way doesn't prevent the last directory being used in the file browser widget if you open it again without restarting (restarting puts it in the RA system dir again because it's nonexisting\nonreadable, the code you added I'm assuming). Really what's needed is the go up button in upstream to be grayed out in the file browser widget if you can't read the parent directory, and the direct entry field to revert to the previous valid dir if entering the path directly fails with a non-existing or non readable dir too. The widget seems to assume that every filesystem will follow Linux distros rules where if you're on a directory, you also have always at least read only access to the parent, which is not the case for android. |
Good point, you can test latest master @ d7276b9. |
When you try to add or mass add games (a requirement to create the playlists correctly), in android you're faced with a browser with a single / dash, and no visible files to navigate. As you can't navigate most users will be stuck unless they know they can navigate to a user visible folder all at once using the onscreen keyboard function (usually /storage/emulated/0/ ).
The code seems to assume that the root is a fallback to navigate the filesystem. But the root isn't readable in android, either that or the core remembers the last used dir and it allowed me to navigate up to a unnavigable dir.
Anyway, please make the default dir here something readable in the place android reserves for the user. Forbidding the user from getting stuck in a technically existing, but actually unnavigable dir would also be nice (I don't know if the core remembers like scummvm but that is a danger if the user keeps pressing up and then restarts the core once they realize they can't navigate and the core puts the browser again in a unnavigable dir).
It would also be nice if the default screen also had the code that upstream scummvm has in the root (as a line (paraphrasing, don't remember) in the directory entries with <> enclosing it <add remote directory>) to open the Files app because the files app can use a SAF plugin (like RSAF) to add a remote directory and scan nfs or webdav (for instance).
The text was updated successfully, but these errors were encountered: