From 8241b1b3210af3c00220cb7cc365549ad149cd81 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Wed, 8 Dec 2010 15:45:22 +0000 Subject: MOHAWK: Implement/stub more LB 3 notifications svn-id: r54832 --- engines/mohawk/livingbooks.cpp | 19 +++++++++++++++++++ engines/mohawk/livingbooks.h | 5 ++++- 2 files changed, 23 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 690dfbdae2..904f99e3a7 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -1017,6 +1017,13 @@ void MohawkEngine_LivingBooks::handleNotify(NotifyEvent &event) { } 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 @@ void MohawkEngine_LivingBooks::handleNotify(NotifyEvent &event) { // 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); } diff --git a/engines/mohawk/livingbooks.h b/engines/mohawk/livingbooks.h index 29dbd70f02..9f33e10054 100644 --- a/engines/mohawk/livingbooks.h +++ b/engines/mohawk/livingbooks.h @@ -149,9 +149,12 @@ enum { kLBNotifyGUIAction = 1, kLBNotifyGoToControls = 2, kLBNotifyChangePage = 3, + kLBNotifyGotoQuit = 4, kLBNotifyIntroDone = 5, kLBNotifyChangeMode = 6, - kLBNotifyCursorChange = 7 + kLBNotifyCursorChange = 7, + kLBNotifyPrintPage = 0xc, + kLBNotifyQuit = 0xd }; class MohawkEngine_LivingBooks; -- cgit v1.2.3