Files::Init() is doing something stupid. It is calling SDL_GetPrefPath("endless-sky", "saves") to get a writable directory for game saves, then is using the parent directory for all of its configuration. This happens to work for desktop configurations, but on android, the org and app arguments are known by the system in advance, so those arguments are not used by SDL, and we end up writing files directly into the app's data directory (which is meant to be used by the android system).
This also has the side effect that all save files are in a "files" directory, not a "saves" directory.
Is there an existing issue for this?
Describe the bug
Files::Init() is doing something stupid. It is calling SDL_GetPrefPath("endless-sky", "saves") to get a writable directory for game saves, then is using the parent directory for all of its configuration. This happens to work for desktop configurations, but on android, the org and app arguments are known by the system in advance, so those arguments are not used by SDL, and we end up writing files directly into the app's data directory (which is meant to be used by the android system).
This also has the side effect that all save files are in a "files" directory, not a "saves" directory.
Steps to Reproduce
You can see the botched file structure in android
Expected Behavior
The file structure should look more like this
Screenshots
No response
Link to save file
No response
Device type
asdf
Game Version
build 37
Additional Information
Any fix for this will need to move the existing save files.