[Scummvm-cvs-logs] SF.net SVN: scummvm:[46008] scummvm/trunk/engines/sci/engine/state.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Nov 20 15:51:16 CET 2009


Revision: 46008
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46008&view=rev
Author:   thebluegr
Date:     2009-11-20 14:51:15 +0000 (Fri, 20 Nov 2009)

Log Message:
-----------
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

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/state.cpp

Modified: scummvm/trunk/engines/sci/engine/state.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/state.cpp	2009-11-20 14:47:43 UTC (rev 46007)
+++ scummvm/trunk/engines/sci/engine/state.cpp	2009-11-20 14:51:15 UTC (rev 46008)
@@ -451,7 +451,7 @@
 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 @@
 			}
 		}
 
+		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());
 	}
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list