diff options
author | Filippos Karapetis | 2009-11-20 14:51:15 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-11-20 14:51:15 +0000 |
commit | 94c8f77faac80cf9f431ad530d9ec5c6e3672c2b (patch) | |
tree | 3d926713efc8dfd00927e22ef0e913dc89a96df6 | |
parent | 7d3501397d71665f9ac195738b0aace3e4ce297f (diff) | |
download | scummvm-rg350-94c8f77faac80cf9f431ad530d9ec5c6e3672c2b.tar.gz scummvm-rg350-94c8f77faac80cf9f431ad530d9ec5c6e3672c2b.tar.bz2 scummvm-rg350-94c8f77faac80cf9f431ad530d9ec5c6e3672c2b.zip |
Added a game-specific workaround for setCursor detection in KQ5CD: the code for the setCursor selector has not been rewritten yet to use cursor views (it's the same as lsl3 and sq3, for example), but the game does use cursor views
svn-id: r46008
-rw-r--r-- | engines/sci/engine/state.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sci/engine/state.cpp b/engines/sci/engine/state.cpp index 816aaec774..d957dbe1e7 100644 --- a/engines/sci/engine/state.cpp +++ b/engines/sci/engine/state.cpp @@ -451,7 +451,7 @@ SciVersion EngineState::detectDoSoundType() { SciVersion EngineState::detectSetCursorType() { if (_setCursorType == SCI_VERSION_AUTODETECT) { if (getSciVersion() <= SCI_VERSION_01) { - // SCI0/SCI01 games always have non-colored cursors + // SCI0/SCI01 games never use cursor views _setCursorType = SCI_VERSION_0_EARLY; } else { if (!autoDetectFeature(kDetectSetCursorType)) { @@ -464,6 +464,12 @@ SciVersion EngineState::detectSetCursorType() { } } + if (_gameName == "kq5" && Common::File::exists("audio001.002")) { + // WORKAROUND for KQ5CD: The code of the setCursor selector has not been yet + // rewritten for cursor views, but the game does use cursor views + _setCursorType = SCI_VERSION_1_1; + } + debugC(1, kDebugLevelGraphics, "Detected SetCursor type: %s", getSciVersionDesc(_setCursorType).c_str()); } |