From 5d81276aa7e13b6d28e5299a5af98511a30d5d69 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Sat, 23 Dec 2023 21:48:07 -0500 Subject: [PATCH] jukebox ctor --- LEGO1/jukebox.cpp | 11 +++++++++-- LEGO1/jukebox.h | 7 +++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/LEGO1/jukebox.cpp b/LEGO1/jukebox.cpp index b13b1f82..683903bb 100644 --- a/LEGO1/jukebox.cpp +++ b/LEGO1/jukebox.cpp @@ -1,7 +1,14 @@ #include "jukebox.h" -// STUB: LEGO1 0x1005d660 +#include "mxnotificationmanager.h" +#include "mxomni.h" + +DECOMP_SIZE_ASSERT(JukeBox, 0x104) + +// FUNCTION: LEGO1 0x1005d660 JukeBox::JukeBox() { - // TODO + m_unk100 = 0; + m_unkfc = 0; + NotificationManager()->Register(this); } diff --git a/LEGO1/jukebox.h b/LEGO1/jukebox.h index 1f04bac3..6cfb7295 100644 --- a/LEGO1/jukebox.h +++ b/LEGO1/jukebox.h @@ -1,6 +1,7 @@ #ifndef JUKEBOX_H #define JUKEBOX_H +#include "decomp.h" #include "legoworld.h" // VTABLE: LEGO1 0x100d8958 @@ -21,6 +22,12 @@ class JukeBox : public LegoWorld { { return !strcmp(p_name, JukeBox::ClassName()) || LegoWorld::IsA(p_name); } + +private: + undefined m_unkf8[4]; + undefined4 m_unkfc; + undefined2 m_unk100; + undefined m_unk102[2]; }; #endif // JUKEBOX_H