diff options
author | Johannes Schickel | 2009-05-17 23:01:35 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-17 23:01:35 +0000 |
commit | d4fbcb35ff333f307fedc2fbffcb8d7509153468 (patch) | |
tree | 0a342a2e4a15158507534bc20f30ae0c8c357a22 /engines | |
parent | 380231fc3be9b62b748d10fd2a6d339af377019c (diff) | |
download | scummvm-rg350-d4fbcb35ff333f307fedc2fbffcb8d7509153468.tar.gz scummvm-rg350-d4fbcb35ff333f307fedc2fbffcb8d7509153468.tar.bz2 scummvm-rg350-d4fbcb35ff333f307fedc2fbffcb8d7509153468.zip |
Don't protect save slot 0 for LoL.
svn-id: r40665
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/detection.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp index 7e77f52db2..23ae91e8ca 100644 --- a/engines/kyra/detection.cpp +++ b/engines/kyra/detection.cpp @@ -1221,8 +1221,8 @@ SaveStateList KyraMetaEngine::listSaves(const char *target) const { int KyraMetaEngine::getMaximumSaveSlot() const { return 999; } void KyraMetaEngine::removeSaveState(const char *target, int slot) const { - // Slot 0 can't be deleted, it's for restarting the game(s) - if (slot == 0) + // In Kyra games slot 0 can't be deleted, it's for restarting the game(s) + if (slot == 0 && !ConfMan.getDomain(target)->get("gameid").equalsIgnoreCase("lol")) return; Common::String filename = Kyra::KyraEngine_v1::getSavegameFilename(target, slot); @@ -1243,8 +1243,9 @@ SaveStateDescriptor KyraMetaEngine::querySaveMetaInfos(const char *target, int s if (error == Kyra::KyraEngine_v1::kRSHENoError) { SaveStateDescriptor desc(slot, header.description); - desc.setDeletableFlag(slot != 0); - desc.setWriteProtectedFlag(slot == 0 || slot >= 990); + bool lolGame = ConfMan.getDomain(target)->get("gameid").equalsIgnoreCase("lol"); + desc.setDeletableFlag(slot != 0 || lolGame); + desc.setWriteProtectedFlag((slot == 0 && !lolGame) || slot >= 990); desc.setThumbnail(header.thumbnail); return desc; |