diff options
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/state.cpp | 20 | ||||
-rw-r--r-- | engines/sci/engine/static_selectors.cpp | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/engines/sci/engine/state.cpp b/engines/sci/engine/state.cpp index 167fab5de9..98ef8715ab 100644 --- a/engines/sci/engine/state.cpp +++ b/engines/sci/engine/state.cpp @@ -101,10 +101,10 @@ EngineState::EngineState(ResourceManager *res, Kernel *kernel, Vocabulary *voc, _lastAnimateCounter = 0; _lastAnimateTime = 0; - _setCursorType = SCI_VERSION_AUTODETECT; - _doSoundType = SCI_VERSION_AUTODETECT; - _lofsType = SCI_VERSION_AUTODETECT; - _gfxFunctionsType = SCI_VERSION_AUTODETECT; + _setCursorType = SCI_VERSION_NONE; + _doSoundType = SCI_VERSION_NONE; + _lofsType = SCI_VERSION_NONE; + _gfxFunctionsType = SCI_VERSION_NONE; _moveCountType = kMoveCountUninitialized; _usesCdTrack = Common::File::exists("cdaudio.map"); @@ -328,7 +328,7 @@ bool EngineState::autoDetectFeature(FeatureDetection featureDetection, int metho if ((signed)offset + (int16)lofs >= (signed)script->_bufSize) _lofsType = SCI_VERSION_1_MIDDLE; - if (_lofsType != SCI_VERSION_AUTODETECT) + if (_lofsType != SCI_VERSION_NONE) return true; // If we reach here, we haven't been able to deduce the lofs parameter @@ -434,7 +434,7 @@ bool EngineState::autoDetectFeature(FeatureDetection featureDetection, int metho break; } - if (_doSoundType != SCI_VERSION_AUTODETECT) + if (_doSoundType != SCI_VERSION_NONE) return true; } break; @@ -482,7 +482,7 @@ bool EngineState::autoDetectFeature(FeatureDetection featureDetection, int metho } SciVersion EngineState::detectDoSoundType() { - if (_doSoundType == SCI_VERSION_AUTODETECT) { + if (_doSoundType == SCI_VERSION_NONE) { if (getSciVersion() == SCI_VERSION_0_EARLY) { // This game is using early SCI0 sound code (different headers than SCI0 late) _doSoundType = SCI_VERSION_0_EARLY; @@ -513,7 +513,7 @@ SciVersion EngineState::detectDoSoundType() { } SciVersion EngineState::detectSetCursorType() { - if (_setCursorType == SCI_VERSION_AUTODETECT) { + if (_setCursorType == SCI_VERSION_NONE) { if (getSciVersion() <= SCI_VERSION_01) { // SCI0/SCI01 games never use cursor views _setCursorType = SCI_VERSION_0_EARLY; @@ -554,7 +554,7 @@ SciVersion EngineState::detectSetCursorType() { } SciVersion EngineState::detectLofsType() { - if (_lofsType == SCI_VERSION_AUTODETECT) { + if (_lofsType == SCI_VERSION_NONE) { // This detection only works (and is only needed) for SCI 1 if (getSciVersion() <= SCI_VERSION_01) { _lofsType = SCI_VERSION_0_EARLY; @@ -594,7 +594,7 @@ SciVersion EngineState::detectLofsType() { } SciVersion EngineState::detectGfxFunctionsType() { - if (_gfxFunctionsType == SCI_VERSION_AUTODETECT) { + if (_gfxFunctionsType == SCI_VERSION_NONE) { // This detection only works (and is only needed) for SCI0 games if (getSciVersion() >= SCI_VERSION_01) { _gfxFunctionsType = SCI_VERSION_0_LATE; diff --git a/engines/sci/engine/static_selectors.cpp b/engines/sci/engine/static_selectors.cpp index 4c213afc3c..47a38196df 100644 --- a/engines/sci/engine/static_selectors.cpp +++ b/engines/sci/engine/static_selectors.cpp @@ -73,7 +73,7 @@ static const SelectorRemap sciSelectorRemap[] = { { SCI_VERSION_1_EARLY, SCI_VERSION_1_1, "flags", 102 }, { SCI_VERSION_1_1, SCI_VERSION_1_1, "scaleX", 104 }, { SCI_VERSION_1_1, SCI_VERSION_1_1, "scaleY", 105 }, - { SCI_VERSION_AUTODETECT, SCI_VERSION_AUTODETECT, 0, 0 } + { SCI_VERSION_NONE, SCI_VERSION_NONE, 0, 0 } }; Common::StringList Kernel::checkStaticSelectorNames() { |