aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/livingbooks.cpp19
-rw-r--r--engines/mohawk/livingbooks.h5
2 files changed, 23 insertions, 1 deletions
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;