diff options
author | David Fioramonti | 2018-07-12 19:13:22 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-21 13:15:14 +0200 |
commit | 9d88afe6bf077006945e2494f397a593ae70e9eb (patch) | |
tree | d53b7e08bd62a66ace17ba20a2ed06447990ce3d /engines/savestate.h | |
parent | f515393a74d5c28fcf6d654435727784f1282be0 (diff) | |
download | scummvm-rg350-9d88afe6bf077006945e2494f397a593ae70e9eb.tar.gz scummvm-rg350-9d88afe6bf077006945e2494f397a593ae70e9eb.tar.bz2 scummvm-rg350-9d88afe6bf077006945e2494f397a593ae70e9eb.zip |
GRAPHICS: Add playtime in milliseconds to SaveStateDescriptor
This will make setting the playtime for the engine easier since
the current savestate stores it as a string.
This value gets set at the same time that the string playtime gets set.
Diffstat (limited to 'engines/savestate.h')
-rw-r--r-- | engines/savestate.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/savestate.h b/engines/savestate.h index 567750c4be..e91cc9c78d 100644 --- a/engines/savestate.h +++ b/engines/savestate.h @@ -177,6 +177,14 @@ public: */ const Common::String &getPlayTime() const { return _playTime; } + /** + * Returns the time the game was played before the save state was created + * in milliseconds. + * + * It defaults to 0. + */ + uint32 getPlayTimeMSecs() const { return _playTimeMSecs; } + private: /** * The saveslot id, as it would be passed to the "-x" command line switch. @@ -220,6 +228,12 @@ private: Common::String _playTime; /** + * The time the game was played before the save state was created + * in milliseconds. + */ + uint32 _playTimeMSecs; + + /** * The thumbnail of the save state. */ Common::SharedPtr<Graphics::Surface> _thumbnail; |