aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
authorFilippos Karapetis2015-02-19 15:20:05 +0200
committerEugene Sandulenko2015-12-15 00:05:02 +0100
commit31ef4866a70857d107338e8c462d8456b2dcb643 (patch)
tree5e25265198277ce95d75c55307ec310ef7d2a3c1 /engines/lab
parent35751e0f123338927ea4bfdf6f6311229a25f054 (diff)
downloadscummvm-rg350-31ef4866a70857d107338e8c462d8456b2dcb643.tar.gz
scummvm-rg350-31ef4866a70857d107338e8c462d8456b2dcb643.tar.bz2
scummvm-rg350-31ef4866a70857d107338e8c462d8456b2dcb643.zip
LAB: Implement generateSaveFileName()
Diffstat (limited to 'engines/lab')
-rw-r--r--engines/lab/lab.cpp4
-rw-r--r--engines/lab/lab.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/engines/lab/lab.cpp b/engines/lab/lab.cpp
index 16839dad29..1d7c82743e 100644
--- a/engines/lab/lab.cpp
+++ b/engines/lab/lab.cpp
@@ -72,4 +72,8 @@ Common::Error LabEngine::run() {
return Common::kNoError;
}
+Common::String LabEngine::generateSaveFileName(uint slot) {
+ return Common::String::format("%s.%03u", _targetName.c_str(), slot);
+}
+
} // End of namespace Lab
diff --git a/engines/lab/lab.h b/engines/lab/lab.h
index 882541780e..fa5edd6c24 100644
--- a/engines/lab/lab.h
+++ b/engines/lab/lab.h
@@ -52,12 +52,13 @@ public:
virtual Common::Error run();
void go();
- bool hasFeature(EngineFeature f) const;
-
const ADGameDescription *_gameDescription;
Common::Platform getPlatform() const;
uint32 getFeatures() const;
+ bool hasFeature(EngineFeature f) const;
+ Common::String generateSaveFileName(uint slot);
+
LargeSet *_conditions, *_roomsFound;
};