diff options
author | Johannes Schickel | 2008-11-09 20:20:22 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-11-09 20:20:22 +0000 |
commit | b9b7b85d543a19c2e73abf0cf845b42c5e7480d6 (patch) | |
tree | b8b61a054d262f53c99c99d7486e926ede96ab32 /engines | |
parent | d7c5e9ce873e03e0664c4ceb6b32e8385a22c51c (diff) | |
download | scummvm-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
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/detection.cpp | 1 |
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; |