diff options
author | Filippos Karapetis | 2011-09-25 15:10:43 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-09-25 15:10:43 +0300 |
commit | cfa262b1b7a172cfbbbc510040ba26ce33bc7342 (patch) | |
tree | b44d96aa80bbc97e377eb2c7c9e460d844a2bf24 /engines/agi | |
parent | d01d228ee89d2e5c671dec825bbec50c3b6cf50c (diff) | |
download | scummvm-rg350-cfa262b1b7a172cfbbbc510040ba26ce33bc7342.tar.gz scummvm-rg350-cfa262b1b7a172cfbbbc510040ba26ce33bc7342.tar.bz2 scummvm-rg350-cfa262b1b7a172cfbbbc510040ba26ce33bc7342.zip |
AGI: Add some comments regarding save slot 0, and use the default SaveStateDescriptor constructor
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/detection.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index ddd8349854..21b1831261 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -276,6 +276,8 @@ SaveStateDescriptor AgiMetaEngine::querySaveMetaInfos(const char *target, int sl SaveStateDescriptor desc(slot, name); + // Do not allow save slot 0 (used for auto-saving) to be deleted or + // overwritten. desc.setDeletableFlag(slot != 0); desc.setWriteProtectedFlag(slot == 0); @@ -307,7 +309,8 @@ SaveStateDescriptor AgiMetaEngine::querySaveMetaInfos(const char *target, int sl return desc; } else { - SaveStateDescriptor emptySave(slot, ""); + SaveStateDescriptor emptySave; + // Do not allow save slot 0 (used for auto-saving) to be overwritten. emptySave.setWriteProtectedFlag(slot == 0); return emptySave; } |