diff options
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 19 |
1 files changed, 19 insertions, 0 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); } |