This commit is contained in:
Christian Semmler 2024-01-06 17:09:52 -05:00
parent da675e3e29
commit 47cc915dda
7 changed files with 14 additions and 23 deletions

View File

@ -34,8 +34,8 @@ void MxAtomId::Destroy()
if (!AtomIdCounterSet())
return;
// The dtor is called on the counter object immediately,
// so this syntax should be correct.
// The dtor is called on the counter object immediately,
// so this syntax should be correct.
#ifdef COMPAT_MODE
MxAtomIdCounter id_counter(m_internal);
MxAtomIdCounterSet::iterator it = AtomIdCounterSet()->find(&id_counter);

View File

@ -99,10 +99,7 @@ void MxCompositePresenter::EndAction()
if (action && action->GetOrigin()) {
#ifdef COMPAT_MODE
MxEndActionNotificationParam param(c_notificationEndAction, this, action, FALSE);
NotificationManager()->Send(
action->GetOrigin(),
&param
);
NotificationManager()->Send(action->GetOrigin(), &param);
#else
NotificationManager()->Send(
action->GetOrigin(),

View File

@ -30,7 +30,7 @@ MxDiskStreamController::~MxDiskStreamController()
#else
m_provider->VTable0x20(&MxDSAction());
#endif
}
}
MxDSAction* action;
while (m_unk0x3c.PopFront(action))
@ -307,9 +307,7 @@ MxResult MxDiskStreamController::VTable0x24(MxDSAction* p_action)
if (VTable0x30(p_action) == SUCCESS) {
#ifdef COMPAT_MODE
MxEndActionNotificationParam param(c_notificationEndAction, NULL, p_action, TRUE);
MxOmni::GetInstance()->NotifyCurrentEntity(
&param
);
MxOmni::GetInstance()->NotifyCurrentEntity(&param);
#else
MxOmni::GetInstance()->NotifyCurrentEntity(
&MxEndActionNotificationParam(c_notificationEndAction, NULL, p_action, TRUE)

View File

@ -162,10 +162,7 @@ void MxMediaPresenter::EndAction()
if (action && action->GetOrigin()) {
#ifdef COMPAT_MODE
MxEndActionNotificationParam param(c_notificationEndAction, this, action, FALSE);
NotificationManager()->Send(
action->GetOrigin(),
&param
);
NotificationManager()->Send(action->GetOrigin(), &param);
#else
NotificationManager()->Send(
action->GetOrigin(),

View File

@ -148,10 +148,8 @@ void MxPresenter::EndAction()
if (!this->m_compositePresenter) {
#ifdef COMPAT_MODE
MxEndActionNotificationParam param(c_notificationEndAction, NULL, this->m_action, TRUE);
MxOmni::GetInstance()->NotifyCurrentEntity(
&param
);
MxEndActionNotificationParam param(c_notificationEndAction, NULL, this->m_action, TRUE);
MxOmni::GetInstance()->NotifyCurrentEntity(&param);
#else
MxOmni::GetInstance()->NotifyCurrentEntity(
&MxEndActionNotificationParam(c_notificationEndAction, NULL, this->m_action, TRUE)

View File

@ -88,7 +88,7 @@ MxLong MxStreamer::Close(const char* p_name)
#else
NotificationManager()->Send(this, &MxStreamerNotification(MXSTREAMER_DELETE_NOTIFY, NULL, c));
#endif
}
}
return SUCCESS;
}
@ -198,7 +198,7 @@ MxLong MxStreamer::Notify(MxParam& p_param)
#else
NotificationManager()->Send(this, &MxStreamerNotification(MXSTREAMER_DELETE_NOTIFY, NULL, c));
#endif
}
}
}
return 0;

View File

@ -13,10 +13,11 @@ Renderer* Tgl::CreateRenderer()
return renderer;
}
namespace TglImpl {
namespace TglImpl
{
// GLOBAL: LEGO1 0x1010103c
IDirect3DRM2 *g_pD3DRM = NULL;
}
IDirect3DRM2* g_pD3DRM = NULL;
} // namespace TglImpl
// Inlined only
Result RendererImpl::Create()