diff options
author | uruk | 2013-08-18 15:08:32 +0200 |
---|---|---|
committer | uruk | 2013-08-18 15:08:32 +0200 |
commit | b5914349400b95ac646926e69e5e3acf2094eff2 (patch) | |
tree | cdda051ae89b206c9e0df3e03d4ddd91791791da /engines/avalanche/avalanche.cpp | |
parent | c4891ace820ab47c5136e100adacd31418ea615a (diff) | |
download | scummvm-rg350-b5914349400b95ac646926e69e5e3acf2094eff2.tar.gz scummvm-rg350-b5914349400b95ac646926e69e5e3acf2094eff2.tar.bz2 scummvm-rg350-b5914349400b95ac646926e69e5e3acf2094eff2.zip |
AVALANCHE: Add saving/loading during run time.
Diffstat (limited to 'engines/avalanche/avalanche.cpp')
-rw-r--r-- | engines/avalanche/avalanche.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index b950bdb427..f8e873b2ae 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -123,7 +123,7 @@ Common::Platform AvalancheEngine::getPlatform() const { bool AvalancheEngine::hasFeature(EngineFeature f) const { - return false; + return (f == kSupportsSavingDuringRuntime) || (f == kSupportsLoadingDuringRuntime); } const char *AvalancheEngine::getCopyrightString() const { @@ -132,6 +132,24 @@ const char *AvalancheEngine::getCopyrightString() const { +bool AvalancheEngine::canSaveGameStateCurrently() { + return true; +} + +Common::Error AvalancheEngine::saveGameState(int slot, const Common::String &desc) { + return Common::kNoError; +} + +bool AvalancheEngine::canLoadGameStateCurrently() { + return true; +} + +Common::Error AvalancheEngine::loadGameState(int slot, const Common::String &desc) { + return Common::kNoError; +} + + + void AvalancheEngine::updateEvents() { Common::Event event; |