mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
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
This commit is contained in:
parent
7d3501397d
commit
94c8f77faa
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user