diff options
author | Martin Kiewitz | 2010-08-31 11:38:07 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-31 11:38:07 +0000 |
commit | aae0d9284e96196d96ed76c4bdf0b5086acbe28e (patch) | |
tree | 511c2fda71e39d1d35d075563904dab4dae97c51 /engines | |
parent | 737b9bc632e1d70ae331a53b07411f9efd6c9eee (diff) | |
download | scummvm-rg350-aae0d9284e96196d96ed76c4bdf0b5086acbe28e.tar.gz scummvm-rg350-aae0d9284e96196d96ed76c4bdf0b5086acbe28e.tar.bz2 scummvm-rg350-aae0d9284e96196d96ed76c4bdf0b5086acbe28e.zip |
SCI: renaming config-variables
"sci_dither" got removed, "undither" renamed to "sci_undither". Also changed logic for handling "sci_originalsaveload"
svn-id: r52469
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/sci.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 1f53d5ec18..28d9e34859 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -179,8 +179,9 @@ Common::Error SciEngine::run() { g_eventRec.registerRandomSource(_rng, "sci"); // Assign default values to the config manager, in case settings are missing - ConfMan.registerDefault("undither", "true"); - ConfMan.registerDefault("enable_fb01", "false"); + ConfMan.registerDefault("sci_undither", "true"); + ConfMan.registerDefault("sci_originalsaveload", "false"); + ConfMan.registerDefault("sci_enable_fb01", "false"); _resMan = new ResourceManager(); assert(_resMan); @@ -208,7 +209,7 @@ Common::Error SciEngine::run() { // Initialize the game screen _gfxScreen = new GfxScreen(_resMan); - _gfxScreen->debugUnditherSetState(ConfMan.getBool("undither")); + _gfxScreen->debugUnditherSetState(ConfMan.getBool("sci_undither")); // Create debugger console. It requires GFX to be initialized _console = new Console(this); @@ -257,11 +258,6 @@ Common::Error SciEngine::run() { // Patch in our save/restore code, so that dialogs are replaced patchGameSaveRestore(segMan); - // Switch off undithering, if requested by user - Common::String ditherOption = ConfMan.get("sci_dither"); - if (ditherOption != "") - _gfxScreen->debugUnditherSetState(false); - if (_gameDescription->flags & ADGF_ADDENGLISH) { // if game is multilingual Common::Language selectedLanguage = Common::parseLanguage(ConfMan.get("language")); @@ -352,8 +348,7 @@ void SciEngine::patchGameSaveRestore(SegManager *segMan) { break; } - Common::String originalSaveLoadOption = ConfMan.get("sci_originalsaveload"); - if (originalSaveLoadOption != "") + if (ConfMan.getBool("sci_originalsaveload")) return; for (uint16 kernelNr = 0; kernelNr < kernelCount; kernelNr++) { |