diff options
author | Travis Howell | 2005-04-16 15:21:19 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-16 15:21:19 +0000 |
commit | 1507203d93dcd6466e8840928d46fc44d00720d1 (patch) | |
tree | 24b3febf5bc838bf16b5cee0a03569527436958f /scumm | |
parent | ee62127aceb2792cb14e28db848705b11f1ce716 (diff) | |
download | scummvm-rg350-1507203d93dcd6466e8840928d46fc44d00720d1.tar.gz scummvm-rg350-1507203d93dcd6466e8840928d46fc44d00720d1.tar.bz2 scummvm-rg350-1507203d93dcd6466e8840928d46fc44d00720d1.zip |
VAR78 needs to be set in HE80+ games
Active sound channels VAR exists in HE80 too.
svn-id: r17632
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v72he.cpp | 4 | ||||
-rw-r--r-- | scumm/vars.cpp | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 3d2bdd6c66..de200650d0 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -2135,7 +2135,7 @@ void ScummEngine_v72he::o72_writeINI() { case 6: // number value = pop(); copyScriptString(option, sizeof(option)); - ConfMan.set((char *)option, value); + ConfMan.set((char *)option, value); break; case 77: // HE 100 case 7: // string @@ -2152,6 +2152,8 @@ void ScummEngine_v72he::o72_writeINI() { error("o72_writeINI: default type %d", type); } + debug(0, "o72_writeINI: option %s", option); + ConfMan.flushToDisk(); } diff --git a/scumm/vars.cpp b/scumm/vars.cpp index fd981e48bb..a253112ea5 100644 --- a/scumm/vars.cpp +++ b/scumm/vars.cpp @@ -267,9 +267,8 @@ void ScummEngine_v72he::setupScummVars() { if (_heversion >= 80) VAR_WINDOWS_VERSION = 79; VAR_KEY_STATE = 86; - if (_heversion >= 90) { VAR_NUM_ACTIVE_SOUND_CHANNELS = 88; - + if (_heversion >= 90) { VAR_SCRIPT_CYCLE = 103; VAR_NUM_SCRIPT_CYCLES = 104; @@ -515,10 +514,11 @@ void ScummEngine::initScummVars() { VAR(VAR_NUM_GLOBAL_OBJS) = _numGlobalObjects - 1; } if (_heversion >= 80) + VAR(78) = 1; VAR(VAR_WINDOWS_VERSION) = 40; - if (_heversion >= 90) { - VAR(VAR_NUM_ACTIVE_SOUND_CHANNELS) = 8; + VAR(VAR_NUM_ACTIVE_SOUND_CHANNELS) = (_heversion >= 90) ? 8 : 4; + if (_heversion >= 90) { VAR(VAR_SCRIPT_CYCLE) = 1; VAR(VAR_NUM_SCRIPT_CYCLES) = 1; |