[Scummvm-cvs-logs] SF.net SVN: scummvm: [29495] scummvm/trunk/engines/scumm/room.cpp

knakos at users.sourceforge.net knakos at users.sourceforge.net
Tue Nov 13 20:41:36 CET 2007


Revision: 29495
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29495&view=rev
Author:   knakos
Date:     2007-11-13 11:41:35 -0800 (Tue, 13 Nov 2007)

Log Message:
-----------
Moving the vitual keyboard show/hide hints during the copy protection screens to the scumm engine.
As the original code is slightly cryptic, there may be something wrong with MI1 (as commented)

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/room.cpp

Modified: scummvm/trunk/engines/scumm/room.cpp
===================================================================
--- scummvm/trunk/engines/scumm/room.cpp	2007-11-13 15:49:21 UTC (rev 29494)
+++ scummvm/trunk/engines/scumm/room.cpp	2007-11-13 19:41:35 UTC (rev 29495)
@@ -24,7 +24,7 @@
  */
 
 
-
+#include "common/system.h"
 #include "scumm/actor.h"
 #include "scumm/boxes.h"
 #include "scumm/intern.h"
@@ -213,6 +213,22 @@
 	}
 
 	_doEffect = true;
+
+	// Hint the backend about the virtual keyboard during copy protection screens
+	if (_game.id == GID_MONKEY2) {
+		if (_system->getFeatureState(OSystem::kFeatureVirtualKeyboard)) {
+			if (room != 108)
+				_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false);
+		} else if (room == 108)
+			_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true);
+	} else if (_game.id == GID_MONKEY_EGA) {	// this is my estimation that the room code is 90 (untested)
+		if (_system->getFeatureState(OSystem::kFeatureVirtualKeyboard)) {
+			if (room != 90)
+				_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false);
+		} else if (room == 90)
+			_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true);
+	}
+
 }
 
 /**


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