(clang-format) Insert newline at end of file (#247)

* Insert newline at EOF

* Fix formatting
This commit is contained in:
Christian Semmler 2023-10-25 14:51:59 -04:00 committed by GitHub
parent 6b8dc8a0cc
commit a01bcf5241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 54 additions and 53 deletions

View file

@ -19,6 +19,7 @@ ContinuationIndentWidth: 4
IncludeBlocks: Regroup
IndentAccessModifiers: false
IndentWidth: 4
InsertNewlineAtEOF: true
PointerAlignment: Left
SpaceAfterCStyleCast: true
TabWidth: 4

View file

@ -18,4 +18,4 @@ Ambulance::Ambulance()
this->m_unk172 = 0;
this->m_unk13c = 40.0;
this->m_unk17c = 1.0;
}
}

View file

@ -4,4 +4,4 @@
CarRace::CarRace()
{
// TODO
}
}

View file

@ -5,4 +5,4 @@ extern const char* g_parseExtraTokens;
extern const char* g_strWORLD;
extern const char* g_strACTION;
#endif // DEFINE_H
#endif // DEFINE_H

View file

@ -9,4 +9,4 @@ DuneBuggy::DuneBuggy()
{
this->m_unk13c = 25.0;
this->m_unk164 = 1.0;
}
}

View file

@ -22,4 +22,4 @@ GifMapEntry* GifMap::FindNode(const char*& string)
current = current->m_left;
}
return ret;
}
}

View file

@ -66,4 +66,4 @@ class GifManager : public GifManagerBase {
undefined m_unk[0x1c];
};
#endif // GIFMANAGER_H
#endif // GIFMANAGER_H

View file

@ -8,4 +8,4 @@ Jetski::Jetski()
this->m_unk13c = 25.0;
this->m_unk150 = 2.0;
this->m_unk148 = 1;
}
}

View file

@ -4,4 +4,4 @@
JukeBox::JukeBox()
{
// TODO
}
}

View file

@ -146,4 +146,4 @@ void LegoEntity::VTable0x48()
void LegoEntity::VTable0x4c()
{
// TODO
}
}

View file

@ -4,4 +4,4 @@
LegoFlcTexturePresenter::LegoFlcTexturePresenter()
{
// TODO
}
}

View file

@ -236,4 +236,4 @@ void LegoInputManager::KillTimer()
LegoOmni* omni = LegoOmni::GetInstance();
::KillTimer(omni->GetWindowHandle(), m_timer);
}
}
}

View file

@ -3,4 +3,4 @@
#include "decomp.h"
// Uncomment when member class variables are fleshed out.
// DECOMP_SIZE_ASSERT(LegoMeterPresenter, 0x94); // 0x1000a163
// DECOMP_SIZE_ASSERT(LegoMeterPresenter, 0x94); // 0x1000a163

View file

@ -224,4 +224,4 @@ float LegoNavController::CalculateNewVel(float p_targetVel, float p_currentVel,
}
return newVel;
}
}

View file

@ -164,4 +164,4 @@ void LegoPathActor::VTable0xa4()
void LegoPathActor::VTable0xa8()
{
// TODO
}
}

View file

@ -39,4 +39,4 @@ LegoFileStream* LegoFileStream::FUN_10006030(MxString p_str)
Write(data, (MxS16) fullLength);
return this;
}
}

View file

@ -86,4 +86,4 @@ void SetIsWorldActive(MxBool p_isWorldActive)
if (!p_isWorldActive)
LegoOmni::GetInstance()->GetInputManager()->SetCamera(NULL);
g_isWorldActive = p_isWorldActive;
}
}

View file

@ -1,3 +1,3 @@
#include "mxappnotificationparam.h"
DECOMP_SIZE_ASSERT(MxAppNotificationParam, 0x1c)
DECOMP_SIZE_ASSERT(MxAppNotificationParam, 0x1c)

View file

@ -17,4 +17,4 @@ class MxAppNotificationParam : public MxNotificationParam {
MxU8 m_unk18;
};
#endif // MXAPPNOTIFICATIONPARAM_H
#endif // MXAPPNOTIFICATIONPARAM_H

View file

@ -43,4 +43,4 @@ struct MxAtomIdCounterCompare {
class MxAtomIdCounterSet : public set<MxAtomIdCounter*, MxAtomIdCounterCompare> {};
#endif // MXATOMIDCOUNTER_H
#endif // MXATOMIDCOUNTER_H

View file

@ -75,4 +75,4 @@ MxResult MxAudioManager::InitPresenters()
void MxAudioManager::Destroy()
{
Destroy(FALSE);
}
}

View file

@ -105,4 +105,4 @@ void MxBackgroundAudioManager::DestroyMusic()
Streamer()->Close(m_script.GetInternal());
m_musicEnabled = FALSE;
}
}
}

View file

@ -4,4 +4,4 @@
MxCompositeMediaPresenter::MxCompositeMediaPresenter()
{
// TODO
}
}

View file

@ -11,4 +11,4 @@ MxControlPresenter::MxControlPresenter()
this->m_unk52 = 0;
this->m_unk58 = 0;
this->m_unk54 = 0;
}
}

View file

@ -20,4 +20,4 @@ void MxDSActionList::Destroy(MxDSAction* p_action)
{
if (p_action)
delete p_action;
}
}

View file

@ -38,4 +38,4 @@ MxDSAction* MxDSAnim::Clone()
*clone = *this;
return clone;
}
}

View file

@ -38,4 +38,4 @@ MxDSAction* MxDSEvent::Clone()
*clone = *this;
return clone;
}
}

View file

@ -91,4 +91,4 @@ void MxDSMediaAction::CopyMediaSrcPath(const char* p_mediaSrcPath)
}
else
this->m_mediaSrcPath = NULL;
}
}

View file

@ -151,4 +151,4 @@ void MxDSMultiAction::SetAtomId(MxAtomId p_atomId)
MxDSAction* action;
while (cursor.Next(action))
action->SetAtomId(p_atomId);
}
}

View file

@ -191,4 +191,4 @@ MxDSObject* DeserializeDSObjectDispatch(char** p_source, MxS16 p_flags)
}
return obj;
}
}

View file

@ -84,4 +84,4 @@ MxLong MxDSParallelAction::GetDuration()
this->m_duration *= this->m_loopCount;
return this->m_duration;
}
}

View file

@ -129,4 +129,4 @@ void MxDSSelectAction::Deserialize(char** p_source, MxS16 p_unk24)
}
*p_source += extraFlag;
}
}

View file

@ -78,4 +78,4 @@ MxLong MxDSSerialAction::GetDuration()
}
return this->m_duration;
}
}

View file

@ -60,4 +60,4 @@ MxDSAction* MxDSSound::Clone()
*clone = *this;
return clone;
}
}

View file

@ -38,4 +38,4 @@ MxDSAction* MxDSStill::Clone()
*clone = *this;
return clone;
}
}

View file

@ -89,4 +89,4 @@ void MxDSStreamingAction::FUN_100CD2D0()
this->m_duration -= duration;
this->m_unka8 += duration;
}
}

View file

@ -65,4 +65,4 @@ class MxMatrixData : public MxMatrix {
};
};
#endif // MXMATRIX_H
#endif // MXMATRIX_H

View file

@ -99,4 +99,4 @@ void MxMediaManager::StopPresenters()
while (cursor.Next(presenter))
presenter->EndAction();
}
}

View file

@ -36,4 +36,4 @@ void MxMIDIPresenter::DoneTickle()
if (!MusicManager()->GetMIDIInitialized()) {
this->EndAction();
}
}
}

View file

@ -143,4 +143,4 @@ MxResult MxMusicManager::Create(MxU32 p_frequencyMS, MxBool p_createThread)
m_criticalSection.Leave();
return status;
}
}

View file

@ -40,4 +40,4 @@ class MxMusicManager : public MxAudioManager {
void InitData();
};
#endif // MXMUSICMANAGER_H
#endif // MXMUSICMANAGER_H

View file

@ -183,4 +183,4 @@ MxResult MxNotificationManager::Send(MxCore* p_listener, MxNotificationParam* p_
}
return FAILURE;
}
}

View file

@ -37,4 +37,4 @@ MxBool MxRegion::vtable20()
{
// TODO
return FALSE;
}
}

View file

@ -26,4 +26,4 @@ void MxSemaphore::Wait(MxU32 p_timeoutMS)
void MxSemaphore::Release(MxU32 p_releaseCount)
{
ReleaseSemaphore(m_hSemaphore, p_releaseCount, NULL);
}
}

View file

@ -21,4 +21,4 @@ class MxSemaphore {
HANDLE m_hSemaphore;
};
#endif // MX_SEMAPHORE_H
#endif // MX_SEMAPHORE_H

View file

@ -184,4 +184,4 @@ MxStreamerSubClass1::MxStreamerSubClass1(undefined4 size)
for (int i = 0; i >= 0; i--) {
ptr[i] = 0;
}
}
}

View file

@ -96,4 +96,4 @@ MxResult MxTickleThread::Run()
Sleep(timeRemainingMS);
}
return MxThread::Run();
}
}

View file

@ -1,3 +1,3 @@
#include "mxtype17notificationparam.h"
DECOMP_SIZE_ASSERT(MxType17NotificationParam, 0x2c)
DECOMP_SIZE_ASSERT(MxType17NotificationParam, 0x2c)

View file

@ -17,4 +17,4 @@ class MxType17NotificationParam : public MxNotificationParam {
MxU16 m_unk28;
};
#endif // MXTYPE17NOTIFICATIONPARAM_H
#endif // MXTYPE17NOTIFICATIONPARAM_H

View file

@ -35,4 +35,4 @@ class MxUnkList {
MxU32 m_count;
};
#endif // MXUNKLIST_H
#endif // MXUNKLIST_H

View file

@ -10,4 +10,4 @@ PizzaMissionStateEntry* PizzaMissionState::GetState(MxU8 id)
if (m_state[i].m_id == id)
return m_state + i;
return NULL;
}
}

View file

@ -20,4 +20,4 @@ RaceStateEntry* RaceState::GetState(MxU8 id)
if (m_state[i].m_id == id)
return m_state + i;
}
}
}

View file

@ -4,4 +4,4 @@
Radio::~Radio()
{
// TODO
}
}

View file

@ -324,4 +324,4 @@ MxBool Score::VTable0x64()
DeleteScript();
m_unkf8 = 2;
return TRUE;
}
}