Duplicate GameSaves when re-saving an opened game,.
When saving a game twice, the list on the "Open Saved Game" panel contains of GameSave
with the same name. It adds a new GameSave
in GameSaveManager
rather than updating the previous.
The GameSaveManager
needs to delete a previous GameSave
and add the new one. The two duplicate (newer and older) game saves can be identified by creating a random number identifier. This number would always be created for each SaveMetadata
unless the metadata is being updated (in which case it remains the same). When a new GameSave
is added to GameSaveList
, the game with the same identifier would be deleted.