From b9b7b85d543a19c2e73abf0cf845b42c5e7480d6 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 9 Nov 2008 20:20:22 +0000 Subject: Disallow overwriting of slot 0, quicksave and autosave slots. svn-id: r34973 --- engines/kyra/detection.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/kyra') 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; -- cgit v1.2.3