aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_vars.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2019-10-29 21:23:09 +0100
committerBastien Bouclet2019-10-29 21:29:47 +0100
commit998bd303c636e6da5d50edaa4890bedc730f5a11 (patch)
treefcf8285b211021265d248e5536485a572a4424c3 /engines/mohawk/riven_vars.cpp
parent9a7f2c8374e79ed44c62809e957e78a2b71fa1a5 (diff)
downloadscummvm-rg350-998bd303c636e6da5d50edaa4890bedc730f5a11.tar.gz
scummvm-rg350-998bd303c636e6da5d50edaa4890bedc730f5a11.tar.bz2
scummvm-rg350-998bd303c636e6da5d50edaa4890bedc730f5a11.zip
MOHAWK: RIVEN: Save the options to ConfMan when the game is not started
That way changes made while on the main menu with no game started are persisted across sessions. When a game is started, the options are saved to the savegame as previously.
Diffstat (limited to 'engines/mohawk/riven_vars.cpp')
-rw-r--r--engines/mohawk/riven_vars.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/mohawk/riven_vars.cpp b/engines/mohawk/riven_vars.cpp
index e2166c9f4c..e79d418b97 100644
--- a/engines/mohawk/riven_vars.cpp
+++ b/engines/mohawk/riven_vars.cpp
@@ -21,6 +21,7 @@
*/
#include "common/str.h"
+#include "common/config-manager.h"
#include "mohawk/riven.h"
#include "mohawk/riven_stack.h"
@@ -302,7 +303,8 @@ void MohawkEngine_Riven::initVars() {
_vars["blabpage"] = 1;
_vars["bidvlv"] = 1;
_vars["bvise"] = 1;
- _vars["waterenabled"] = 1;
+ _vars["azip"] = ConfMan.getBool("zip_mode");
+ _vars["waterenabled"] = ConfMan.getBool("water_effects");
_vars["ogehnpage"] = 1;
_vars["bblrsw"] = 1;
_vars["ocage"] = 1;
@@ -319,9 +321,11 @@ void MohawkEngine_Riven::initVars() {
_vars["gpinpos"] = 1;
_vars["grviewmpos"] = 1617;
_vars["omusicplayer"] = 1;
- _vars["transitionmode"] = kRivenTransitionModeFastest;
_vars["tdomeelev"] = 1;
+ uint32 transitions = ConfMan.getInt("transition_mode");
+ _vars["transitionmode"] = sanitizeTransitionMode(transitions);
+
// Randomize the telescope combination
uint32 &teleCombo = _vars["tcorrectorder"];
for (byte i = 0; i < 5; i++) {