From 31ef4866a70857d107338e8c462d8456b2dcb643 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 19 Feb 2015 15:20:05 +0200 Subject: LAB: Implement generateSaveFileName() --- engines/lab/lab.cpp | 4 ++++ engines/lab/lab.h | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/lab') 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; }; -- cgit v1.2.3