aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure
diff options
context:
space:
mode:
authorBorja Lorente2016-08-02 13:29:23 +0200
committerBorja Lorente2016-08-14 19:00:37 +0200
commitf0dde375c13a262d5d71cdf74114b64754fa0755 (patch)
treea733849994322afed9c21e60bb22acea26fdc3d6 /engines/macventure
parent0acdf0c459eaf96c0b181cd3a6a94ba58a97475b (diff)
downloadscummvm-rg350-f0dde375c13a262d5d71cdf74114b64754fa0755.tar.gz
scummvm-rg350-f0dde375c13a262d5d71cdf74114b64754fa0755.tar.bz2
scummvm-rg350-f0dde375c13a262d5d71cdf74114b64754fa0755.zip
MACVENTURE: Add missing methods for runtime load
Diffstat (limited to 'engines/macventure')
-rw-r--r--engines/macventure/detection.cpp1
-rw-r--r--engines/macventure/macventure.h2
-rw-r--r--engines/macventure/saveload.cpp8
3 files changed, 11 insertions, 0 deletions
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