aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-30 23:55:11 +0200
committerEinar Johan Trøan Sømåen2012-07-30 23:55:11 +0200
commit2e636f29fbd0a3ca8706cc5a4c57119ed0f9c4bf (patch)
tree652a34fc40c5c92caf04451bcef4c2c700136662
parent5a1fae94fb1e2d9f5caa21b7c9bad1457cbfc807 (diff)
downloadscummvm-rg350-2e636f29fbd0a3ca8706cc5a4c57119ed0f9c4bf.tar.gz
scummvm-rg350-2e636f29fbd0a3ca8706cc5a4c57119ed0f9c4bf.tar.bz2
scummvm-rg350-2e636f29fbd0a3ca8706cc5a4c57119ed0f9c4bf.zip
WINTERMUTE: Implement GMM-saving.
-rw-r--r--engines/wintermute/wintermute.cpp11
-rw-r--r--engines/wintermute/wintermute.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/wintermute/wintermute.cpp b/engines/wintermute/wintermute.cpp
index 5ee98b8158..038c9567ac 100644
--- a/engines/wintermute/wintermute.cpp
+++ b/engines/wintermute/wintermute.cpp
@@ -101,6 +101,8 @@ bool WinterMuteEngine::hasFeature(EngineFeature f) const {
return true;
case kSupportsLoadingDuringRuntime:
return true;
+ case kSupportsSavingDuringRuntime:
+ return true;
default:
return false;
}
@@ -301,6 +303,15 @@ Common::Error WinterMuteEngine::loadGameState(int slot) {
return Common::kNoError;
}
+Common::Error WinterMuteEngine::saveGameState(int slot, const Common::String &desc) {
+ BaseEngine::instance().getGameRef()->saveGame(slot, desc.c_str(), false);
+ return Common::kNoError;
+}
+
+bool WinterMuteEngine::canSaveGameStateCurrently() {
+ return true;
+}
+
bool WinterMuteEngine::canLoadGameStateCurrently() {
return true;
}
diff --git a/engines/wintermute/wintermute.h b/engines/wintermute/wintermute.h
index e9deea91d3..8dd1b0b98e 100644
--- a/engines/wintermute/wintermute.h
+++ b/engines/wintermute/wintermute.h
@@ -55,6 +55,8 @@ public:
uint32 randInt(int from, int to);
virtual Common::Error loadGameState(int slot);
virtual bool canLoadGameStateCurrently();
+ virtual Common::Error saveGameState(int slot, const Common::String &desc);
+ virtual bool canSaveGameStateCurrently();
// For detection-purposes:
static bool getGameInfo(const Common::FSList &fslist, Common::String &name, Common::String &caption);
private: