Repository navigation
fix: an overwritten save slot shows its new screenshot - #544
Merged
Merged
Conversation
…ad menu The menu took the thumbnail from TextureCacheService's static cache keyed by "savegame_" + title. Overwriting a slot under the same name (or two slots with the same or an empty name) returned the old texture until the game was restarted. Each slot now builds its own thumbnail from its THUMB.SAV, and the textures are destroyed whenever the slots are read again (after every save, when the menu opens) and when the menu is destroyed.
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.
What
Overwriting a save slot now shows the new screenshot in the save and load menus.
SaveMenu: each slot builds its own thumbnail from its THUMB.SAV instead of TextureCacheService's shared cache. The textures are destroyed whenever the slots are read again (after every save, when the menu opens) and when the menu is destroyed.[SaveMenu] Save slot <id> has no thumbnail.(category Ui) when a slot has none.Why
User report 2026-11-22 (PCVR build from develop): saving into an existing slot worked and loaded the new save, but the slot kept its old screenshot. The menu took the thumbnail from TextureCacheService's static cache, keyed by "savegame_" + title. That cache is only cleared when the game shuts down. An overwritten slot usually keeps its title, so the old texture came back. Two slots with the same or an empty title also shared one picture.
Related: #173 ("Check metadata of SaveGame (Thumbnail, texts)").
How to test manually
Save/load
Nothing new is stored. The thumbnail is saved as before (THUMB.SAV); only how the menu shows it changed.
Known gaps / follow-ups
FillSaveGameEntriesadds the slot hover listeners again each time it runs, and keeps_savesentries of slots that disappeared (not changed here).AI usage
Claude found the cause in the save menu code and wrote the fix. The user found the bug while playing.