-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
RetroArch does not auto save on exit #16080
Comments
Tested this on macOS nightly, I installed the 12/29/23 build, configured auto save/load and confirmed it works with Pokemon Emerald on mGBA. Then I installed the 12/30/23 build, and it does not work anymore. I updated the issue title and removed the "Android" part, since this isn't just an Android issue |
I can reproduce on Windows 10 as well, it only saves if the file already exists. Looks like it's a recent regression due to #16061 edit: No idea if it helps, but in my case it returns false here: Lines 1335 to 1336 in 19a3688
because path_is_valid() returns false after this returns 0: RetroArch/libretro-common/vfs/vfs_implementation.c Lines 903 to 904 in 19a3688
|
Got a fix #16084 |
Confirmed fixed in the 1/8/24 nightly! Thanks for getting this merged! |
First and foremost consider this:
Description
I'm unable to get auto save on mGBA (and Gambatte, snes9x) when exiting content on my Android Odin 2 Pro.
Expected behavior
When starting the same content, same core, the auto save state should be loaded
Actual behavior
The auto save state slot is never written (confirmed by using the File Explorer app to navigate to my save state folder), and therefore the save state is not loaded when I start the game again.
Manual save/load state DOES work, just the auto one does not.
Steps to reproduce the bug
Bisect Results
retroarch__2024_01_05__20_17_47.log
I've attached a log (only redacted my RetroAchievements username), and there's a line towards the bottom:
Auto save state to "/storage/6575-071D/Games/_savestates/mGBA/Pokemon Emerald.state.auto" failed.
This line traces to this part of the code in command.c:RetroArch/command.c
Line 1286 in 19a3688
I see that there was a PR that went in last week to change save state behavior (to address Netplay freezes/crashes), I'm wondering if that's what broke this?
I'm pretty sure this was working for me a few weeks ago, and looking at the file history for task_save.c shows two PRs within the last week (first changes since end of October)
Version/Commit
Environment information
The text was updated successfully, but these errors were encountered: