Disallow overwriting of slot 0, quicksave and autosave slots.

svn-id: r34973
This commit is contained in:
Johannes Schickel 2008-11-09 20:20:22 +00:00
parent d7c5e9ce87
commit b9b7b85d54

View File

@ -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;