GROOVIE: show Reserved for save slot 0 unless it's Open House

This commit is contained in:
Die4Ever 2022-02-15 16:24:45 -06:00
parent 1c9f7053a0
commit 3fa92ed90d
No known key found for this signature in database
GPG Key ID: 7B8AAD15B16CE289

View File

@ -89,6 +89,10 @@ Common::InSaveFile *SaveLoad::openForLoading(const Common::String &target, int s
Common::String savename = getSlotSaveName(target, slot);
Common::InSaveFile *savefile = g_system->getSavefileManager()->openForLoading(savename);
if (!savefile) {
if (slot == 0 && descriptor) {
descriptor->setSaveSlot(slot);
descriptor->setDescription("Reserved");
}
return nullptr;
}
@ -141,6 +145,9 @@ Common::InSaveFile *SaveLoad::openForLoading(const Common::String &target, int s
description += c;
}
}
if (slot == 0 && description.compareToIgnoreCase("open house") != 0) {
description = "Reserved";
}
descriptor->setDescription(description);
}