aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/detection.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp
index 37302e31d7..9573db55cd 100644
--- a/engines/scumm/detection.cpp
+++ b/engines/scumm/detection.cpp
@@ -1324,6 +1324,14 @@ SaveStateDescriptor ScummMetaEngine::querySaveMetaInfos(const char *target, int
}
SaveStateDescriptor desc(slot, saveDesc);
+
+ // Do not allow save slot 0 (used for auto-saving) to be deleted or
+ // overwritten.
+ if (slot == 0) {
+ desc.setWriteProtectedFlag(true);
+ desc.setDeletableFlag(false);
+ }
+
desc.setThumbnail(thumbnail);
if (infoPtr) {