From f0dde375c13a262d5d71cdf74114b64754fa0755 Mon Sep 17 00:00:00 2001 From: Borja Lorente Date: Tue, 2 Aug 2016 13:29:23 +0200 Subject: MACVENTURE: Add missing methods for runtime load --- engines/macventure/detection.cpp | 1 + engines/macventure/macventure.h | 2 ++ engines/macventure/saveload.cpp | 8 ++++++++ 3 files changed, 11 insertions(+) (limited to 'engines') diff --git a/engines/macventure/detection.cpp b/engines/macventure/detection.cpp index f4edaefa40..9bf94cfdd4 100644 --- a/engines/macventure/detection.cpp +++ b/engines/macventure/detection.cpp @@ -77,6 +77,7 @@ bool MacVentureMetaEngine::hasFeature(MetaEngineFeature f) const { bool MacVentureEngine::hasFeature(EngineFeature f) const { return + (f == kSupportsRTL) || (f == kSupportsLoadingDuringRuntime) || (f == kSupportsSavingDuringRuntime); } diff --git a/engines/macventure/macventure.h b/engines/macventure/macventure.h index 3e6f7c02ce..b4f8192ed7 100644 --- a/engines/macventure/macventure.h +++ b/engines/macventure/macventure.h @@ -186,6 +186,8 @@ public: virtual Common::Error run(); bool scummVMSaveLoadDialog(bool isSave); + bool canLoadGameStateCurrently(); + bool canSaveGameStateCurrently(); virtual Common::Error loadGameState(int slot); virtual Common::Error saveGameState(int slot, const Common::String &desc); diff --git a/engines/macventure/saveload.cpp b/engines/macventure/saveload.cpp index 1322a43510..95d290d87b 100644 --- a/engines/macventure/saveload.cpp +++ b/engines/macventure/saveload.cpp @@ -128,4 +128,12 @@ bool MacVentureEngine::scummVMSaveLoadDialog(bool isSave) { return saveGameState(slot, desc).getCode() == Common::kNoError; } +bool MacVentureEngine::canLoadGameStateCurrently() { + return true; +} + +bool MacVentureEngine::canSaveGameStateCurrently() { + return true; +} + } // End of namespace MacVenture -- cgit v1.2.3