diff options
author | Alexander Tkachev | 2016-06-06 12:22:22 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | f1a56eaf3666a6535ff0d1654e4e014249933452 (patch) | |
tree | e48d1598f023d0915fb3d559fb6648b0f6d3e1a0 /engines/savestate.h | |
parent | 6c5a8f34eaf5fe6af0d885cb162b5ebf193030f8 (diff) | |
download | scummvm-rg350-f1a56eaf3666a6535ff0d1654e4e014249933452.tar.gz scummvm-rg350-f1a56eaf3666a6535ff0d1654e4e014249933452.tar.bz2 scummvm-rg350-f1a56eaf3666a6535ff0d1654e4e014249933452.zip |
GUI: Show "locked" saves during sync
Diffstat (limited to 'engines/savestate.h')
-rw-r--r-- | engines/savestate.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/engines/savestate.h b/engines/savestate.h index 21ade602fa..3244d61fdb 100644 --- a/engines/savestate.h +++ b/engines/savestate.h @@ -90,6 +90,24 @@ public: bool getWriteProtectedFlag() const { return _isWriteProtected; } /** + * Defines whether the save state is "locked" because is being synced. + */ + void setLocked(bool state) { + _isLocked = state; + + //just in case: + if (state) { + setDeletableFlag(false); + setWriteProtectedFlag(true); + } + } + + /** + * Queries whether the save state is "locked" because is being synced. + */ + bool getLocked() const { return _isLocked; } + + /** * Return a thumbnail graphics surface representing the savestate visually. * This is usually a scaled down version of the game graphics. The size * should be either 160x100 or 160x120 pixels, depending on the aspect @@ -180,6 +198,11 @@ private: bool _isWriteProtected; /** + * Whether the save state is "locked" because is being synced. + */ + bool _isLocked; + + /** * Human readable description of the date the save state was created. */ Common::String _saveDate; |