From 7d7257507918d4145082557e95de1cea73e262d4 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 11 Feb 2024 17:08:33 -0500 Subject: [PATCH] Fixes --- LEGO1/lego/legoomni/include/registrationbook.h | 1 + LEGO1/lego/legoomni/src/infocenter/registrationbook.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/LEGO1/lego/legoomni/include/registrationbook.h b/LEGO1/lego/legoomni/include/registrationbook.h index f941521b..fa610016 100644 --- a/LEGO1/lego/legoomni/include/registrationbook.h +++ b/LEGO1/lego/legoomni/include/registrationbook.h @@ -27,6 +27,7 @@ class RegistrationBook : public LegoWorld { c_check8ctl = 92, c_check9ctl = 95, }; + RegistrationBook(); ~RegistrationBook() override; // vtable+0x00 diff --git a/LEGO1/lego/legoomni/src/infocenter/registrationbook.cpp b/LEGO1/lego/legoomni/src/infocenter/registrationbook.cpp index 945a523c..c5d87ed5 100644 --- a/LEGO1/lego/legoomni/src/infocenter/registrationbook.cpp +++ b/LEGO1/lego/legoomni/src/infocenter/registrationbook.cpp @@ -63,6 +63,7 @@ MxLong RegistrationBook::Notify(MxParam& p_param) { MxLong result = 0; LegoWorld::Notify(p_param); + if (m_worldStarted) { switch (((MxNotificationParam&) p_param).GetType()) { case c_notificationEndAction: @@ -74,7 +75,6 @@ MxLong RegistrationBook::Notify(MxParam& p_param) break; case c_notificationButtonDown: m_unk0xf8 = Timer()->GetTime(); - result = 0; break; case c_notificationClick: result = HandleClick((LegoControlManagerEvent&) p_param); @@ -87,8 +87,10 @@ MxLong RegistrationBook::Notify(MxParam& p_param) break; } } + return result; } + // STUB: LEGO1 0x10077210 MxLong RegistrationBook::HandleEndAction(MxEndActionNotificationParam& p_param) { @@ -122,6 +124,7 @@ MxResult RegistrationBook::Tickle() else { // TODO } + return SUCCESS; }