diff options
author | Matthew Hoops | 2012-03-16 16:16:25 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-03-16 16:16:25 -0400 |
commit | 5ae2543795433513e68339b16e0783d4b3295204 (patch) | |
tree | 8361ee27c56d1cdc826b936152d24a872e15ff9a | |
parent | 2f6528933d8061881c81ac87b0028fb4368dbcc9 (diff) | |
download | scummvm-rg350-5ae2543795433513e68339b16e0783d4b3295204.tar.gz scummvm-rg350-5ae2543795433513e68339b16e0783d4b3295204.tar.bz2 scummvm-rg350-5ae2543795433513e68339b16e0783d4b3295204.zip |
MOHAWK: Disable Riven demo save/load GUI buttons
-rw-r--r-- | engines/mohawk/detection_tables.h | 2 | ||||
-rw-r--r-- | engines/mohawk/riven.h | 4 |
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; |