aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorMatthew Hoops2012-03-16 16:16:25 -0400
committerMatthew Hoops2012-03-16 16:16:25 -0400
commit5ae2543795433513e68339b16e0783d4b3295204 (patch)
tree8361ee27c56d1cdc826b936152d24a872e15ff9a /engines/mohawk
parent2f6528933d8061881c81ac87b0028fb4368dbcc9 (diff)
downloadscummvm-rg350-5ae2543795433513e68339b16e0783d4b3295204.tar.gz
scummvm-rg350-5ae2543795433513e68339b16e0783d4b3295204.tar.bz2
scummvm-rg350-5ae2543795433513e68339b16e0783d4b3295204.zip
MOHAWK: Disable Riven demo save/load GUI buttons
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/detection_tables.h2
-rw-r--r--engines/mohawk/riven.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/mohawk/detection_tables.h b/engines/mohawk/detection_tables.h
index 08df0a2cbe..5acc1bb179 100644
--- a/engines/mohawk/detection_tables.h
+++ b/engines/mohawk/detection_tables.h
@@ -376,7 +376,7 @@ static const MohawkGameDescription gameDescriptions[] = {
Common::EN_ANY,
Common::kPlatformWindows,
ADGF_DEMO | ADGF_UNSTABLE,
- GUIO1(GUIO_NOASPECT)
+ GUIO2(GUIO_NOASPECT, GUIO_NOLAUNCHLOAD)
},
GType_RIVEN,
GF_DEMO,
diff --git a/engines/mohawk/riven.h b/engines/mohawk/riven.h
index e99a9f78fc..961d85d61a 100644
--- a/engines/mohawk/riven.h
+++ b/engines/mohawk/riven.h
@@ -130,8 +130,8 @@ public:
GUI::Debugger *getDebugger();
- bool canLoadGameStateCurrently() { return true; }
- bool canSaveGameStateCurrently() { return true; }
+ bool canLoadGameStateCurrently() { return !(getFeatures() & GF_DEMO); }
+ bool canSaveGameStateCurrently() { return !(getFeatures() & GF_DEMO); }
Common::Error loadGameState(int slot);
Common::Error saveGameState(int slot, const Common::String &desc);
bool hasFeature(EngineFeature f) const;