diff options
author | richiesams | 2013-09-04 00:12:41 -0500 |
---|---|---|
committer | richiesams | 2013-09-04 00:16:46 -0500 |
commit | 235620750a493afdb592f36521fb693533c6dec0 (patch) | |
tree | 046b374a3637ff8ca6a0ad7e3caa7ac1aa638a7d | |
parent | 23ae67c7776f5f3a2207109e7d6cdaef16940979 (diff) | |
download | scummvm-rg350-235620750a493afdb592f36521fb693533c6dec0.tar.gz scummvm-rg350-235620750a493afdb592f36521fb693533c6dec0.tar.bz2 scummvm-rg350-235620750a493afdb592f36521fb693533c6dec0.zip |
ZVISION: Create methods for generating save file names
-rw-r--r-- | engines/zvision/zvision.cpp | 4 | ||||
-rw-r--r-- | engines/zvision/zvision.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index eb474c75ed..85e357e80f 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -164,8 +164,12 @@ void ZVision::pauseEngineIntern(bool pause) { } } +Common::String ZVision::generateSaveFileName(uint slot) { + return Common::String::format("%s.%02u", _targetName.c_str(), slot); } +Common::String ZVision::generateAutoSaveFileName() { + return Common::String::format("%s.auto", _targetName.c_str()); } void ZVision::cycleThroughCursors() { diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h index 331fa2a9f8..a43855737d 100644 --- a/engines/zvision/zvision.h +++ b/engines/zvision/zvision.h @@ -135,6 +135,9 @@ public: */ void cycleThroughCursors(); + Common::String generateSaveFileName(uint slot); + Common::String generateAutoSaveFileName(); + private: void initialize(); |