Fix MxParam p

This commit is contained in:
Christian Semmler 2023-12-12 06:15:58 -05:00
parent acd6d119a3
commit d511461bb0
45 changed files with 81 additions and 81 deletions

View File

@ -21,7 +21,7 @@ MxResult Act2Brick::Tickle()
} }
// STUB: LEGO1 0x1007a8c0 // STUB: LEGO1 0x1007a8c0
MxLong Act2Brick::Notify(MxParam& p) MxLong Act2Brick::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -10,8 +10,8 @@ class Act2Brick : public LegoPathActor {
Act2Brick(); Act2Brick();
virtual ~Act2Brick() override; // vtable+0x0 virtual ~Act2Brick() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
virtual MxResult Tickle() override; // vtable+0x08 virtual MxResult Tickle() override; // vtable+0x08
// FUNCTION: LEGO1 0x1007a360 // FUNCTION: LEGO1 0x1007a360
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -1,7 +1,7 @@
#include "act2policestation.h" #include "act2policestation.h"
// STUB: LEGO1 0x1004e0e0 // STUB: LEGO1 0x1004e0e0
MxLong Act2PoliceStation::Notify(MxParam& p) MxLong Act2PoliceStation::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -7,7 +7,7 @@
// SIZE 0x68 // SIZE 0x68
class Act2PoliceStation : public LegoEntity { class Act2PoliceStation : public LegoEntity {
public: public:
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x1000e200 // FUNCTION: LEGO1 0x1000e200
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -1,7 +1,7 @@
#include "beachhouseentity.h" #include "beachhouseentity.h"
// STUB: LEGO1 0x100150a0 // STUB: LEGO1 0x100150a0
MxLong BeachHouseEntity::Notify(MxParam& p) MxLong BeachHouseEntity::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -7,7 +7,7 @@
// SIZE 0x68 // SIZE 0x68
class BeachHouseEntity : public BuildingEntity { class BeachHouseEntity : public BuildingEntity {
public: public:
virtual MxLong Notify(MxParam& p) override; // vtable+04 virtual MxLong Notify(MxParam& p_param) override; // vtable+04
// FUNCTION: LEGO1 0x1000ee80 // FUNCTION: LEGO1 0x1000ee80
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -13,7 +13,7 @@ ElevatorBottom::~ElevatorBottom()
} }
// STUB: LEGO1 0x10018150 // STUB: LEGO1 0x10018150
MxLong ElevatorBottom::Notify(MxParam& p) MxLong ElevatorBottom::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -9,7 +9,7 @@ class ElevatorBottom : public LegoWorld {
ElevatorBottom(); ElevatorBottom();
virtual ~ElevatorBottom() override; // vtable+0x0 virtual ~ElevatorBottom() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x10017f20 // FUNCTION: LEGO1 0x10017f20
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -13,7 +13,7 @@ GasStation::~GasStation()
} }
// STUB: LEGO1 0x10004a60 // STUB: LEGO1 0x10004a60
MxLong GasStation::Notify(MxParam& p) MxLong GasStation::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -11,8 +11,8 @@ class GasStation : public LegoWorld {
GasStation(); GasStation();
virtual ~GasStation() override; // vtable+0x0 virtual ~GasStation() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
virtual MxResult Tickle() override; // vtable+0x8 virtual MxResult Tickle() override; // vtable+0x8
// FUNCTION: LEGO1 0x10004780 // FUNCTION: LEGO1 0x10004780
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -13,7 +13,7 @@ HistoryBook::~HistoryBook()
} }
// STUB: LEGO1 0x10082680 // STUB: LEGO1 0x10082680
MxLong HistoryBook::Notify(MxParam& p) MxLong HistoryBook::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -10,7 +10,7 @@ class HistoryBook : public LegoWorld {
HistoryBook(); HistoryBook();
virtual ~HistoryBook() override; // vtable+0x0 virtual ~HistoryBook() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x10082390 // FUNCTION: LEGO1 0x10082390
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -13,7 +13,7 @@ Hospital::~Hospital()
} }
// STUB: LEGO1 0x10074990 // STUB: LEGO1 0x10074990
MxLong Hospital::Notify(MxParam& p) MxLong Hospital::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -10,7 +10,7 @@ class Hospital : public LegoWorld {
Hospital(); Hospital();
virtual ~Hospital() override; // vtable+0x0 virtual ~Hospital() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x04 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x04
// FUNCTION: LEGO1 0x100746b0 // FUNCTION: LEGO1 0x100746b0
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -13,7 +13,7 @@ Infocenter::~Infocenter()
} }
// STUB: LEGO1 0x1006ef10 // STUB: LEGO1 0x1006ef10
MxLong Infocenter::Notify(MxParam& p) MxLong Infocenter::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -10,8 +10,8 @@ class Infocenter : public LegoWorld {
Infocenter(); Infocenter();
virtual ~Infocenter() override; virtual ~Infocenter() override;
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
virtual MxResult Tickle() override; // vtable+0x8 virtual MxResult Tickle() override; // vtable+0x8
// FUNCTION: LEGO1 0x1006eb40 // FUNCTION: LEGO1 0x1006eb40
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -13,7 +13,7 @@ InfocenterDoor::~InfocenterDoor()
} }
// STUB: LEGO1 0x100379e0 // STUB: LEGO1 0x100379e0
MxLong InfocenterDoor::Notify(MxParam& p) MxLong InfocenterDoor::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -10,7 +10,7 @@ class InfocenterDoor : public LegoWorld {
InfocenterDoor(); InfocenterDoor();
virtual ~InfocenterDoor(); // vtable+0x0 virtual ~InfocenterDoor(); // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x100377b0 // FUNCTION: LEGO1 0x100377b0
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -34,7 +34,7 @@ void LegoAnimationManager::FUN_1005f6d0(MxBool p)
} }
// STUB: LEGO1 0x100619f0 // STUB: LEGO1 0x100619f0
MxLong LegoAnimationManager::Notify(MxParam& p) MxLong LegoAnimationManager::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -10,8 +10,8 @@ class LegoAnimationManager : public MxCore {
LegoAnimationManager(); LegoAnimationManager();
virtual ~LegoAnimationManager() override; // vtable+0x0 virtual ~LegoAnimationManager() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
virtual MxResult Tickle() override; // vtable+0x8 virtual MxResult Tickle() override; // vtable+0x8
// FUNCTION: LEGO1 0x1005ec80 // FUNCTION: LEGO1 0x1005ec80
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -21,7 +21,7 @@ MxResult LegoCarBuild::Tickle()
} }
// STUB: LEGO1 0x10024050 // STUB: LEGO1 0x10024050
MxLong LegoCarBuild::Notify(MxParam& p) MxLong LegoCarBuild::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -10,8 +10,8 @@ class LegoCarBuild : public LegoWorld {
LegoCarBuild(); LegoCarBuild();
virtual ~LegoCarBuild() override; virtual ~LegoCarBuild() override;
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
virtual MxResult Tickle() override; // vtable+0x8 virtual MxResult Tickle() override; // vtable+0x8
// FUNCTION: LEGO1 0x10022940 // FUNCTION: LEGO1 0x10022940
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -145,7 +145,7 @@ void LegoEntity::VTable0x4c()
} }
// STUB: LEGO1 0x100114f0 // STUB: LEGO1 0x100114f0
MxLong LegoEntity::Notify(MxParam& p) MxLong LegoEntity::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -17,7 +17,7 @@ class LegoEntity : public MxEntity {
__declspec(dllexport) virtual ~LegoEntity() override; // vtable+0x0 __declspec(dllexport) virtual ~LegoEntity() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x1000c2f0 // FUNCTION: LEGO1 0x1000c2f0
inline const char* ClassName() const override // vtable+0xc inline const char* ClassName() const override // vtable+0xc

View File

@ -546,7 +546,7 @@ MxResult LegoOmni::Start(MxDSAction* action)
} }
// STUB: LEGO1 0x1005b5f0 // STUB: LEGO1 0x1005b5f0
MxLong LegoOmni::Notify(MxParam& p) MxLong LegoOmni::Notify(MxParam& p_param)
{ {
// TODO // TODO
return 0; return 0;

View File

@ -69,7 +69,7 @@ class LegoOmni : public MxOmni {
LegoOmni(); LegoOmni();
virtual ~LegoOmni(); // vtable+00 virtual ~LegoOmni(); // vtable+00
virtual MxLong Notify(MxParam& p) override; // vtable+04 virtual MxLong Notify(MxParam& p_param) override; // vtable+04
// FUNCTION: LEGO1 0x10058aa0 // FUNCTION: LEGO1 0x10058aa0
inline virtual const char* ClassName() const override // vtable+0c inline virtual const char* ClassName() const override // vtable+0c

View File

@ -75,7 +75,7 @@ LegoRace::~LegoRace()
} }
// STUB: LEGO1 0x10015e00 // STUB: LEGO1 0x10015e00
MxLong LegoRace::Notify(MxParam& p) MxLong LegoRace::Notify(MxParam& p_param)
{ {
// TODO // TODO
return 0; return 0;

View File

@ -12,7 +12,7 @@ class LegoRace : public LegoWorld {
LegoRace(); LegoRace();
virtual ~LegoRace() override; // vtable+0x0 virtual ~LegoRace() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x10015ba0 // FUNCTION: LEGO1 0x10015ba0
inline const char* ClassName() const override // vtable+0xc inline const char* ClassName() const override // vtable+0xc

View File

@ -14,7 +14,7 @@ class LegoWorld : public LegoEntity {
__declspec(dllexport) LegoWorld(); __declspec(dllexport) LegoWorld();
__declspec(dllexport) virtual ~LegoWorld(); // vtable+0x0 __declspec(dllexport) virtual ~LegoWorld(); // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x1001d690 // FUNCTION: LEGO1 0x1001d690
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -188,24 +188,24 @@ void MxBackgroundAudioManager::FadeInOrFadeOut()
} }
// FUNCTION: LEGO1 0x1007f170 // FUNCTION: LEGO1 0x1007f170
MxLong MxBackgroundAudioManager::Notify(MxParam& p) MxLong MxBackgroundAudioManager::Notify(MxParam& p_param)
{ {
switch (((MxNotificationParam&) p).GetNotification()) { switch (((MxNotificationParam&) p_param).GetNotification()) {
case c_notificationStartAction: case c_notificationStartAction:
StartAction(p); StartAction(p_param);
return 1; return 1;
case c_notificationEndAction: case c_notificationEndAction:
StopAction(p); StopAction(p_param);
return 1; return 1;
} }
return 0; return 0;
} }
// FUNCTION: LEGO1 0x1007f1b0 // FUNCTION: LEGO1 0x1007f1b0
void MxBackgroundAudioManager::StartAction(MxParam& p) void MxBackgroundAudioManager::StartAction(MxParam& p_param)
{ {
// TODO: the sender is most likely a MxAudioPresenter? // TODO: the sender is most likely a MxAudioPresenter?
m_unk138 = (MxAudioPresenter*) ((MxNotificationParam&) p).GetSender(); m_unk138 = (MxAudioPresenter*) ((MxNotificationParam&) p_param).GetSender();
m_action2.SetAtomId(m_unk138->GetAction()->GetAtomId()); m_action2.SetAtomId(m_unk138->GetAction()->GetAtomId());
m_action2.SetObjectId(m_unk138->GetAction()->GetObjectId()); m_action2.SetObjectId(m_unk138->GetAction()->GetObjectId());
m_targetVolume = ((MxDSSound*) (m_unk138->GetAction()))->GetVolume(); m_targetVolume = ((MxDSSound*) (m_unk138->GetAction()))->GetVolume();
@ -213,20 +213,20 @@ void MxBackgroundAudioManager::StartAction(MxParam& p)
} }
// FUNCTION: LEGO1 0x1007f200 // FUNCTION: LEGO1 0x1007f200
void MxBackgroundAudioManager::StopAction(MxParam& p) void MxBackgroundAudioManager::StopAction(MxParam& p_param)
{ {
if (((MxNotificationParam&) p).GetSender() == m_unka0) { if (((MxNotificationParam&) p_param).GetSender() == m_unka0) {
m_unka0 = NULL; m_unka0 = NULL;
m_action1.SetAtomId(MxAtomId()); m_action1.SetAtomId(MxAtomId());
m_action1.SetObjectId(-1); m_action1.SetObjectId(-1);
} }
else if (((MxNotificationParam&) p).GetSender() == m_unk138) { else if (((MxNotificationParam&) p_param).GetSender() == m_unk138) {
m_unk138 = NULL; m_unk138 = NULL;
m_action2.SetAtomId(MxAtomId()); m_action2.SetAtomId(MxAtomId());
m_action2.SetObjectId(-1); m_action2.SetObjectId(-1);
} }
Lego()->HandleNotificationType2(p); Lego()->HandleNotificationType2(p_param);
} }
// FUNCTION: LEGO1 0x1007f2f0 // FUNCTION: LEGO1 0x1007f2f0

View File

@ -15,8 +15,8 @@ class MxBackgroundAudioManager : public MxCore {
MxBackgroundAudioManager(); MxBackgroundAudioManager();
virtual ~MxBackgroundAudioManager() override; virtual ~MxBackgroundAudioManager() override;
virtual MxLong Notify(MxParam& p) override; // vtable+0x04 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x04
virtual MxResult Tickle() override; // vtable+0x08 virtual MxResult Tickle() override; // vtable+0x08
// FUNCTION: LEGO1 0x1007eb70 // FUNCTION: LEGO1 0x1007eb70
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
@ -31,8 +31,8 @@ class MxBackgroundAudioManager : public MxCore {
return !strcmp(p_name, MxBackgroundAudioManager::ClassName()) || MxCore::IsA(p_name); return !strcmp(p_name, MxBackgroundAudioManager::ClassName()) || MxCore::IsA(p_name);
} }
void StartAction(MxParam& p); void StartAction(MxParam& p_param);
void StopAction(MxParam& p); void StopAction(MxParam& p_param);
MxResult PlayMusic(MxDSAction& p_action, undefined4 p_unknown, undefined4 p_unknown2); MxResult PlayMusic(MxDSAction& p_action, undefined4 p_unknown, undefined4 p_unknown2);
void FUN_1007ee70(); void FUN_1007ee70();

View File

@ -127,29 +127,29 @@ void MxCompositePresenter::EndAction()
} }
// FUNCTION: LEGO1 0x100b6760 // FUNCTION: LEGO1 0x100b6760
MxLong MxCompositePresenter::Notify(MxParam& p) MxLong MxCompositePresenter::Notify(MxParam& p_param)
{ {
MxAutoLocker lock(&m_criticalSection); MxAutoLocker lock(&m_criticalSection);
switch (((MxNotificationParam&) p).GetNotification()) { switch (((MxNotificationParam&) p_param).GetNotification()) {
case c_notificationEndAction: case c_notificationEndAction:
VTable0x58(p); VTable0x58(p_param);
break; break;
case MXPRESENTER_NOTIFICATION: case MXPRESENTER_NOTIFICATION:
VTable0x5c(p); VTable0x5c(p_param);
} }
return 0; return 0;
} }
// STUB: LEGO1 0x100b67f0 // STUB: LEGO1 0x100b67f0
void MxCompositePresenter::VTable0x58(MxParam& p) void MxCompositePresenter::VTable0x58(MxParam& p_param)
{ {
// TODO // TODO
} }
// STUB: LEGO1 0x100b69b0 // STUB: LEGO1 0x100b69b0
void MxCompositePresenter::VTable0x5c(MxParam& p) void MxCompositePresenter::VTable0x5c(MxParam& p_param)
{ {
// TODO // TODO
} }

View File

@ -13,7 +13,7 @@ class MxCompositePresenter : public MxPresenter {
MxCompositePresenter(); MxCompositePresenter();
virtual ~MxCompositePresenter() override; // vtable+0x0 virtual ~MxCompositePresenter() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x04 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x04
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c
{ {
@ -31,8 +31,8 @@ class MxCompositePresenter : public MxPresenter {
virtual void SetTickleState(TickleState p_tickleState) override; // vtable+0x44 virtual void SetTickleState(TickleState p_tickleState) override; // vtable+0x44
virtual MxBool HasTickleStatePassed(TickleState p_tickleState) override; // vtable+0x48 virtual MxBool HasTickleStatePassed(TickleState p_tickleState) override; // vtable+0x48
virtual void Enable(MxBool p_enable) override; // vtable+0x54 virtual void Enable(MxBool p_enable) override; // vtable+0x54
virtual void VTable0x58(MxParam& p); // vtable+0x58 virtual void VTable0x58(MxParam& p_param); // vtable+0x58
virtual void VTable0x5c(MxParam& p); // vtable+0x5c virtual void VTable0x5c(MxParam& p_param); // vtable+0x5c
virtual void VTable0x60(MxPresenter* p_presenter); // vtable+0x60 virtual void VTable0x60(MxPresenter* p_presenter); // vtable+0x60
virtual MxBool VTable0x64(undefined4 p_unknown); // vtable+0x64 virtual MxBool VTable0x64(undefined4 p_unknown); // vtable+0x64

View File

@ -21,7 +21,7 @@ MxCore::~MxCore()
} }
// FUNCTION: LEGO1 0x100ae1f0 // FUNCTION: LEGO1 0x100ae1f0
MxLong MxCore::Notify(MxParam& p) MxLong MxCore::Notify(MxParam& p_param)
{ {
return 0; return 0;
} }

View File

@ -20,9 +20,9 @@ class MxParam;
class MxCore { class MxCore {
public: public:
__declspec(dllexport) MxCore(); __declspec(dllexport) MxCore();
__declspec(dllexport) virtual ~MxCore(); // vtable+00 __declspec(dllexport) virtual ~MxCore(); // vtable+00
__declspec(dllexport) virtual MxLong Notify(MxParam& p); // vtable+04 __declspec(dllexport) virtual MxLong Notify(MxParam& p_param); // vtable+04
virtual MxResult Tickle(); // vtable+08 virtual MxResult Tickle(); // vtable+08
inline virtual const char* ClassName() const // vtable+0c inline virtual const char* ClassName() const // vtable+0c
{ {

View File

@ -339,14 +339,14 @@ void MxOmni::DestroyInstance()
} }
// FUNCTION: LEGO1 0x100b07f0 // FUNCTION: LEGO1 0x100b07f0
MxLong MxOmni::Notify(MxParam& p) MxLong MxOmni::Notify(MxParam& p_param)
{ {
MxAutoLocker lock(&this->m_criticalsection); MxAutoLocker lock(&this->m_criticalsection);
if (((MxNotificationParam&) p).GetNotification() != c_notificationEndAction) if (((MxNotificationParam&) p_param).GetNotification() != c_notificationEndAction)
return 0; return 0;
return HandleNotificationType2(p); return HandleNotificationType2(p_param);
} }
// STUB: LEGO1 0x100b0880 // STUB: LEGO1 0x100b0880

View File

@ -39,7 +39,7 @@ class MxOmni : public MxCore {
MxOmni(); MxOmni();
virtual ~MxOmni() override; virtual ~MxOmni() override;
virtual MxLong Notify(MxParam& p) override; // vtable+04 virtual MxLong Notify(MxParam& p_param) override; // vtable+04
virtual void Init(); // vtable+14 virtual void Init(); // vtable+14
virtual MxResult Create(MxOmniCreateParam& p); // vtable+18 virtual MxResult Create(MxOmniCreateParam& p); // vtable+18
virtual void Destroy(); // vtable+1c virtual void Destroy(); // vtable+1c

View File

@ -154,14 +154,14 @@ MxBool MxStreamer::FUN_100b9b30(MxDSObject& p_dsObject)
} }
// FUNCTION: LEGO1 0x100b9b60 // FUNCTION: LEGO1 0x100b9b60
MxLong MxStreamer::Notify(MxParam& p) MxLong MxStreamer::Notify(MxParam& p_param)
{ {
if (((MxNotificationParam&) p).GetNotification() == MXSTREAMER_DELETE_NOTIFY) { if (((MxNotificationParam&) p_param).GetNotification() == MXSTREAMER_DELETE_NOTIFY) {
MxDSAction ds; MxDSAction ds;
ds.SetUnknown24(-2); ds.SetUnknown24(-2);
MxStreamController* c = static_cast<MxStreamerNotification&>(p).GetController(); MxStreamController* c = static_cast<MxStreamerNotification&>(p_param).GetController();
if (!c->FUN_100c20d0(ds)) { if (!c->FUN_100c20d0(ds)) {
MxStreamerNotification notif(MXSTREAMER_DELETE_NOTIFY, NULL, c); MxStreamerNotification notif(MXSTREAMER_DELETE_NOTIFY, NULL, c);

View File

@ -73,7 +73,7 @@ class MxStreamer : public MxCore {
__declspec(dllexport) MxStreamController* Open(const char* p_name, MxU16 p_openMode); __declspec(dllexport) MxStreamController* Open(const char* p_name, MxU16 p_openMode);
__declspec(dllexport) MxLong Close(const char* p_name); __declspec(dllexport) MxLong Close(const char* p_name);
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x100b9000 // FUNCTION: LEGO1 0x100b9000
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -13,7 +13,7 @@ Police::~Police()
} }
// STUB: LEGO1 0x1005e480 // STUB: LEGO1 0x1005e480
MxLong Police::Notify(MxParam& p) MxLong Police::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -11,7 +11,7 @@ class Police : public LegoWorld {
Police(); Police();
virtual ~Police() override; // vtable+0x0 virtual ~Police() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x1005e1e0 // FUNCTION: LEGO1 0x1005e1e0
inline virtual const char* ClassName() const override // vtable+0xc inline virtual const char* ClassName() const override // vtable+0xc

View File

@ -13,7 +13,7 @@ RegistrationBook::~RegistrationBook()
} }
// STUB: LEGO1 0x100770e0 // STUB: LEGO1 0x100770e0
MxLong RegistrationBook::Notify(MxParam& p) MxLong RegistrationBook::Notify(MxParam& p_param)
{ {
// TODO // TODO

View File

@ -10,7 +10,7 @@ class RegistrationBook : public LegoWorld {
RegistrationBook(); RegistrationBook();
virtual ~RegistrationBook() override; // vtable+0x0 virtual ~RegistrationBook() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x10076e10 // FUNCTION: LEGO1 0x10076e10
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c

View File

@ -72,26 +72,26 @@ void Score::DeleteScript()
} }
// FUNCTION: LEGO1 0x10001410 // FUNCTION: LEGO1 0x10001410
MxLong Score::Notify(MxParam& p) MxLong Score::Notify(MxParam& p_param)
{ {
MxLong ret = 0; MxLong ret = 0;
LegoWorld::Notify(p); LegoWorld::Notify(p_param);
if (m_unkf6) { if (m_unkf6) {
switch (((MxNotificationParam&) p).GetNotification()) { switch (((MxNotificationParam&) p_param).GetNotification()) {
case c_notificationStartAction: case c_notificationStartAction:
ret = 1; ret = 1;
Paint(); Paint();
break; break;
case c_notificationEndAction: case c_notificationEndAction:
ret = FUN_10001510((MxEndActionNotificationParam&) p); ret = FUN_10001510((MxEndActionNotificationParam&) p_param);
break; break;
case c_notificationKeyPress: case c_notificationKeyPress:
if (((LegoEventNotificationParam&) p).GetKey() == 0x20) if (((LegoEventNotificationParam&) p_param).GetKey() == 0x20)
DeleteScript(); // Shutting down DeleteScript(); // Shutting down
ret = 1; ret = 1;
break; break;
case TYPE17: case TYPE17:
ret = FUN_100016d0((MxType17NotificationParam&) p); ret = FUN_100016d0((MxType17NotificationParam&) p_param);
break; break;
case MXTRANSITIONMANAGER_TRANSITIONENDED: case MXTRANSITIONMANAGER_TRANSITIONENDED:
DeleteObjects(g_infoscorScript, 7, 9); DeleteObjects(g_infoscorScript, 7, 9);

View File

@ -12,8 +12,8 @@
class Score : public LegoWorld { class Score : public LegoWorld {
public: public:
Score(); Score();
virtual ~Score() override; // vtable+0x0 virtual ~Score() override; // vtable+0x0
virtual MxLong Notify(MxParam& p) override; // vtable+0x4 virtual MxLong Notify(MxParam& p_param) override; // vtable+0x4
// FUNCTION: LEGO1 0x100010c0 // FUNCTION: LEGO1 0x100010c0
inline virtual const char* ClassName() const override // vtable+0x0c inline virtual const char* ClassName() const override // vtable+0x0c