[Scummvm-cvs-logs] SF.net SVN: scummvm:[54832] scummvm/trunk/engines/mohawk

fuzzie at users.sourceforge.net fuzzie at users.sourceforge.net
Wed Dec 8 16:45:22 CET 2010


Revision: 54832
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54832&view=rev
Author:   fuzzie
Date:     2010-12-08 15:45:22 +0000 (Wed, 08 Dec 2010)

Log Message:
-----------
MOHAWK: Implement/stub more LB 3 notifications

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/livingbooks.cpp
    scummvm/trunk/engines/mohawk/livingbooks.h

Modified: scummvm/trunk/engines/mohawk/livingbooks.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/livingbooks.cpp	2010-12-08 07:18:38 UTC (rev 54831)
+++ scummvm/trunk/engines/mohawk/livingbooks.cpp	2010-12-08 15:45:22 UTC (rev 54832)
@@ -1017,6 +1017,13 @@
 		}
 		break;
 
+	case kLBNotifyGotoQuit:
+		debug(2, "kLBNotifyGotoQuit: %d", event.param);
+
+		if (!loadPage(kLBControlMode, 2, 0))
+			error("couldn't load quit page");
+		break;
+
 	case kLBNotifyIntroDone:
 		debug(2, "kLBNotifyIntroDone: %d", event.param);
 
@@ -1058,6 +1065,18 @@
 		// TODO: show/hide cursor according to parameter?
 		break;
 
+	case kLBNotifyPrintPage:
+		debug(2, "kLBNotifyPrintPage: %d", event.param);
+
+		warning("kLBNotifyPrintPage unimplemented");
+		break;
+
+	case kLBNotifyQuit:
+		debug(2, "kLBNotifyQuit: %d", event.param);
+
+		quitGame();
+		break;
+
 	default:
 		error("Unknown notification %d (param 0x%04x)", event.type, event.param);
 	}

Modified: scummvm/trunk/engines/mohawk/livingbooks.h
===================================================================
--- scummvm/trunk/engines/mohawk/livingbooks.h	2010-12-08 07:18:38 UTC (rev 54831)
+++ scummvm/trunk/engines/mohawk/livingbooks.h	2010-12-08 15:45:22 UTC (rev 54832)
@@ -149,9 +149,12 @@
 	kLBNotifyGUIAction = 1,
 	kLBNotifyGoToControls = 2,
 	kLBNotifyChangePage = 3,
+	kLBNotifyGotoQuit = 4,
 	kLBNotifyIntroDone = 5,
 	kLBNotifyChangeMode = 6,
-	kLBNotifyCursorChange = 7
+	kLBNotifyCursorChange = 7,
+	kLBNotifyPrintPage = 0xc,
+	kLBNotifyQuit = 0xd
 };
 
 class MohawkEngine_LivingBooks;


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