aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/detection.cpp
diff options
context:
space:
mode:
authorBorja Lorente2016-08-02 13:01:35 +0200
committerBorja Lorente2016-08-14 19:00:36 +0200
commit9ab6ce04a11de0bf5f56a7866a4837c7431cefbe (patch)
treeeb794e21227051c9546901afcf123297709a9666 /engines/macventure/detection.cpp
parentb7b4862e4c93898e5a315c672e52df0ea1894cc6 (diff)
downloadscummvm-rg350-9ab6ce04a11de0bf5f56a7866a4837c7431cefbe.tar.gz
scummvm-rg350-9ab6ce04a11de0bf5f56a7866a4837c7431cefbe.tar.bz2
scummvm-rg350-9ab6ce04a11de0bf5f56a7866a4837c7431cefbe.zip
MACVENTURE: Change GUI to accept ScummVM dialogs
Diffstat (limited to 'engines/macventure/detection.cpp')
-rw-r--r--engines/macventure/detection.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/engines/macventure/detection.cpp b/engines/macventure/detection.cpp
index 64a7923f04..082a8acc65 100644
--- a/engines/macventure/detection.cpp
+++ b/engines/macventure/detection.cpp
@@ -32,9 +32,7 @@ namespace MacVenture {
const char *MacVentureEngine::getGameFileName() const {
return _gameDescription->filesDescriptions[0].fileName;
}
-}
-
-namespace MacVenture {
+} // End of namespace MacVenture
#include "macventure/detection_tables.h"
@@ -45,6 +43,8 @@ static const PlainGameDescriptor macventureGames[] = {
{ 0, 0 }
};
+namespace MacVenture {
+
SaveStateDescriptor loadMetaData(Common::SeekableReadStream *s, int slot);
class MacVentureMetaEngine : public AdvancedMetaEngine {
@@ -73,6 +73,12 @@ bool MacVentureMetaEngine::hasFeature(MetaEngineFeature f) const {
(f == kSupportsLoadingDuringStartup);
}
+bool MacVentureEngine::hasFeature(EngineFeature f) const {
+ return
+ (f == kSupportsLoadingDuringRuntime) ||
+ (f == kSupportsSavingDuringRuntime);
+}
+
SaveStateList MacVentureMetaEngine::listSaves(const char *target) const {
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
Common::StringArray filenames;
@@ -116,14 +122,11 @@ int MacVentureMetaEngine::getMaximumSaveSlot() const { return 999; }
bool MacVentureMetaEngine::createInstance(OSystem * syst, Engine ** engine, const ADGameDescription *game) const {
if (game) {
- *engine = new MacVentureEngine(syst, game);
+ *engine = new MacVenture::MacVentureEngine(syst, game);
}
return game != 0;
}
-
-
-
} // End of namespace MacVenture
#if PLUGIN_ENABLED_DYNAMIC(MACVENTURE)