Introduce clang-format (#240)

This commit is contained in:
Christian Semmler
2023-10-24 19:38:27 -04:00
committed by GitHub
parent e928fc9425
commit b449da1fa3
408 changed files with 12434 additions and 12813 deletions

View File

@@ -1,4 +1,5 @@
#include "legopathpresenter.h"
#include "legoomni.h"
#include "legovideomanager.h"
#include "mxautolocker.h"
@@ -8,60 +9,59 @@ DECOMP_SIZE_ASSERT(LegoPathPresenter, 0x54);
// OFFSET: LEGO1 0x100448d0
LegoPathPresenter::LegoPathPresenter()
{
Init();
Init();
}
// OFFSET: LEGO1 0x10044ab0
void LegoPathPresenter::Init()
{
}
// OFFSET: LEGO1 0x10044b40
MxResult LegoPathPresenter::AddToManager()
{
MxResult status = FAILURE;
MxResult status = FAILURE;
if (VideoManager()) {
VideoManager()->AddPresenter(*this);
status = SUCCESS;
}
if (VideoManager()) {
VideoManager()->AddPresenter(*this);
status = SUCCESS;
}
return status;
return status;
}
// OFFSET: LEGO1 0x10044b70
void LegoPathPresenter::Destroy(MxBool p_fromDestructor)
{
if (VideoManager())
VideoManager()->RemovePresenter(*this);
if (VideoManager())
VideoManager()->RemovePresenter(*this);
{
MxAutoLocker lock(&this->m_criticalSection);
Init();
}
{
MxAutoLocker lock(&this->m_criticalSection);
Init();
}
if (!p_fromDestructor)
MxMediaPresenter::Destroy(FALSE);
if (!p_fromDestructor)
MxMediaPresenter::Destroy(FALSE);
}
// OFFSET: LEGO1 0x10044c10
void LegoPathPresenter::Destroy()
{
Destroy(FALSE);
Destroy(FALSE);
}
// OFFSET: LEGO1 0x10044d40
void LegoPathPresenter::RepeatingTickle()
{
if (this->m_action->GetDuration() == -1)
return;
if (this->m_action->GetDuration() == -1)
return;
EndAction();
EndAction();
}
// OFFSET: LEGO1 0x10044d60 STUB
void LegoPathPresenter::ParseExtra()
{
// TODO
// TODO
}