GRIM: Add minor versioning of savegames, allowing compatible save versions.
Bump savegame version to 22.0.
This commit is contained in:
parent
873a2d1373
commit
3c515489d3
5 changed files with 43 additions and 15 deletions
|
@ -462,7 +462,7 @@ SaveStateList GrimMetaEngine::listSaves(const char *target) const {
|
|||
if (slotNum >= 0) {
|
||||
SaveGame *savedState = SaveGame::openForLoading(*file);
|
||||
if (savedState) {
|
||||
if (savedState->saveVersion() != SaveGame::SAVEGAME_VERSION) {
|
||||
if (!savedState->isCompatible()) {
|
||||
delete savedState;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue