Relevent settings: Retroarch freedom=on, autosave & autoload=on, save state increment=off, sleep function=sleep 2m+shutdown, device startup=resume game
When running Canada Goose I noticed, after closing the lid and letting the device sleep & shutdown, that it would often load an older save state upon startup. It seemed to auto save before shutting down, so I could manually load the auto save state from the retroarch menu.
I have updated to Golden Goose, hoping this might fix it, and now the behaviour is different. When I shut the lid/sleep+shut down during a game, the device resumes the game upon startup with a ‘failed to load the auto save state’ message.
Manually exiting a game (with MENU+START) and opening a game (with A) always loads the auto save state fine.
I came across this post and checked to see if the line of code was present in the script file: it is there and I am still encountering the issue.
I did a little more experimenting: used a GBA game with no save states, played for a few moments, closed the lid, and allowed the device time to shut-down.
Upon powering-on, the game opened with a ‘failed to load save state auto’ message. I looked and there was a single save state in slot 0 - loaded it manually and it was from the moment I slept/shutdown.
Then, I manually changed the current save slot to -1 and repeated the process. Again, when the device booted into the game, I got a ‘failed to load’ message, but there was now a new save state in -1 at the right point in the game.
I’ve also noticed that if I set the lid-close to just immediately shutdown, without any sleep, that either no auto save state is created or the one that is created is corrupted somehow - as it can’t even be loaded manually.
I ended-up doing a complete reflash of SD1 with Golden Goose and manually restoring all my settings and games. Lid sleep/shutdown and resuming auto saves upon startup all seem to be working as intended now!