Repository navigation
Memory cards stay on disk after a state is loaded - #141
Merged
Merged
Conversation
A loaded state brought the cards' contents back but not their host folder (it is not saved), so every in-game save made after loading a state stayed in memory and was lost at exit. With a host folder (a played game), loading a state now reads the cards again from their folders and keeps them bound, as a real memory card lives outside the console. Without one (tests, scripted runs) the state's cards are kept as saved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A loaded save state restored the memory cards' contents but not their host folder (not part of the state), so in-game saves made after loading a state were kept only in memory and lost at exit (found in TLOTR TTA: a save made after F7 never reached the card folder).
With a host folder (a played game), loading a state now re-reads each card from its folder and keeps it bound there, as a real memory card lives outside the console (PCSX2 does not keep cards in states either). Without a host folder (tests, scripted runs) the state's cards are kept exactly as saved, so deterministic runs are unchanged.
Checked in TTA: load a state, save in game, the save is written to the card folder.
🤖 Generated with Claude Code