diff options
author | Filippos Karapetis | 2008-11-09 20:07:46 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-11-09 20:07:46 +0000 |
commit | ea7f3059605526e61e8cea2364c70bef3c35806a (patch) | |
tree | cb2f732f79a980cedf31ffdd38c0a1bbe0218c48 /engines/game.cpp | |
parent | 7d8e4ca59bc1877ccb86bcbffacb1847bdf7f3e9 (diff) | |
download | scummvm-rg350-ea7f3059605526e61e8cea2364c70bef3c35806a.tar.gz scummvm-rg350-ea7f3059605526e61e8cea2364c70bef3c35806a.tar.bz2 scummvm-rg350-ea7f3059605526e61e8cea2364c70bef3c35806a.zip |
Added a new SaveStateDescriptor flag, is_write_protected, which can be used to stop the user from overwriting certain saves (e.g. the auto save, the restart save in the Kyrandia games, the quicksaves etc)
svn-id: r34970
Diffstat (limited to 'engines/game.cpp')
-rw-r--r-- | engines/game.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/game.cpp b/engines/game.cpp index 5011685412..3e6cdc2e79 100644 --- a/engines/game.cpp +++ b/engines/game.cpp @@ -115,6 +115,10 @@ void SaveStateDescriptor::setDeletableFlag(bool state) { setVal("is_deletable", state ? "true" : "false"); } +void SaveStateDescriptor::setWriteProtectedFlag(bool state) { + setVal("is_write_protected", state ? "true" : "false"); +} + void SaveStateDescriptor::setSaveDate(int year, int month, int day) { char buffer[32]; snprintf(buffer, 32, "%.2d.%.2d.%.4d", day, month, year); |