aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-11-09 20:20:22 +0000
committerJohannes Schickel2008-11-09 20:20:22 +0000
commitb9b7b85d543a19c2e73abf0cf845b42c5e7480d6 (patch)
treeb8b61a054d262f53c99c99d7486e926ede96ab32
parentd7c5e9ce873e03e0664c4ceb6b32e8385a22c51c (diff)
downloadscummvm-rg350-b9b7b85d543a19c2e73abf0cf845b42c5e7480d6.tar.gz
scummvm-rg350-b9b7b85d543a19c2e73abf0cf845b42c5e7480d6.tar.bz2
scummvm-rg350-b9b7b85d543a19c2e73abf0cf845b42c5e7480d6.zip
Disallow overwriting of slot 0, quicksave and autosave slots.
svn-id: r34973
-rw-r--r--engines/kyra/detection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp
index 20a78260a7..73693a880c 100644
--- a/engines/kyra/detection.cpp
+++ b/engines/kyra/detection.cpp
@@ -1216,6 +1216,7 @@ SaveStateDescriptor KyraMetaEngine::querySaveMetaInfos(const char *target, int s
SaveStateDescriptor desc(slot, header.description);
desc.setDeletableFlag(slot != 0);
+ desc.setWriteProtectedFlag(slot == 0 || slot >= 990);
desc.setThumbnail(header.thumbnail);
return desc;