aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
};