mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
GROOVIE: show Reserved for save slot 0 unless it's Open House
This commit is contained in:
parent
1c9f7053a0
commit
3fa92ed90d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user