diff --git a/.clang-format b/.clang-format index 3612a9a0..4ff99b84 100644 --- a/.clang-format +++ b/.clang-format @@ -19,6 +19,7 @@ ContinuationIndentWidth: 4 IncludeBlocks: Regroup IndentAccessModifiers: false IndentWidth: 4 +InsertNewlineAtEOF: true PointerAlignment: Left SpaceAfterCStyleCast: true TabWidth: 4 diff --git a/LEGO1/ambulance.cpp b/LEGO1/ambulance.cpp index 7e07e198..81e71a4c 100644 --- a/LEGO1/ambulance.cpp +++ b/LEGO1/ambulance.cpp @@ -18,4 +18,4 @@ Ambulance::Ambulance() this->m_unk172 = 0; this->m_unk13c = 40.0; this->m_unk17c = 1.0; -} \ No newline at end of file +} diff --git a/LEGO1/carrace.cpp b/LEGO1/carrace.cpp index c5794cf1..0303a171 100644 --- a/LEGO1/carrace.cpp +++ b/LEGO1/carrace.cpp @@ -4,4 +4,4 @@ CarRace::CarRace() { // TODO -} \ No newline at end of file +} diff --git a/LEGO1/define.h b/LEGO1/define.h index e7f13fed..ba411bcb 100644 --- a/LEGO1/define.h +++ b/LEGO1/define.h @@ -5,4 +5,4 @@ extern const char* g_parseExtraTokens; extern const char* g_strWORLD; extern const char* g_strACTION; -#endif // DEFINE_H \ No newline at end of file +#endif // DEFINE_H diff --git a/LEGO1/dunebuggy.cpp b/LEGO1/dunebuggy.cpp index 20ddbb14..3219c718 100644 --- a/LEGO1/dunebuggy.cpp +++ b/LEGO1/dunebuggy.cpp @@ -9,4 +9,4 @@ DuneBuggy::DuneBuggy() { this->m_unk13c = 25.0; this->m_unk164 = 1.0; -} \ No newline at end of file +} diff --git a/LEGO1/gifmanager.cpp b/LEGO1/gifmanager.cpp index 96b35e85..dc004b16 100644 --- a/LEGO1/gifmanager.cpp +++ b/LEGO1/gifmanager.cpp @@ -22,4 +22,4 @@ GifMapEntry* GifMap::FindNode(const char*& string) current = current->m_left; } return ret; -} \ No newline at end of file +} diff --git a/LEGO1/gifmanager.h b/LEGO1/gifmanager.h index cf8b2fd3..37661abd 100644 --- a/LEGO1/gifmanager.h +++ b/LEGO1/gifmanager.h @@ -66,4 +66,4 @@ class GifManager : public GifManagerBase { undefined m_unk[0x1c]; }; -#endif // GIFMANAGER_H \ No newline at end of file +#endif // GIFMANAGER_H diff --git a/LEGO1/jetski.cpp b/LEGO1/jetski.cpp index 3b3362c5..fa6293b2 100644 --- a/LEGO1/jetski.cpp +++ b/LEGO1/jetski.cpp @@ -8,4 +8,4 @@ Jetski::Jetski() this->m_unk13c = 25.0; this->m_unk150 = 2.0; this->m_unk148 = 1; -} \ No newline at end of file +} diff --git a/LEGO1/jukebox.cpp b/LEGO1/jukebox.cpp index 44a6815b..028c757f 100644 --- a/LEGO1/jukebox.cpp +++ b/LEGO1/jukebox.cpp @@ -4,4 +4,4 @@ JukeBox::JukeBox() { // TODO -} \ No newline at end of file +} diff --git a/LEGO1/legoentity.cpp b/LEGO1/legoentity.cpp index 48978c54..004befc8 100644 --- a/LEGO1/legoentity.cpp +++ b/LEGO1/legoentity.cpp @@ -146,4 +146,4 @@ void LegoEntity::VTable0x48() void LegoEntity::VTable0x4c() { // TODO -} \ No newline at end of file +} diff --git a/LEGO1/legoflctexturepresenter.cpp b/LEGO1/legoflctexturepresenter.cpp index 132849d0..52bf5f16 100644 --- a/LEGO1/legoflctexturepresenter.cpp +++ b/LEGO1/legoflctexturepresenter.cpp @@ -4,4 +4,4 @@ LegoFlcTexturePresenter::LegoFlcTexturePresenter() { // TODO -} \ No newline at end of file +} diff --git a/LEGO1/legoinputmanager.cpp b/LEGO1/legoinputmanager.cpp index c8f5cd68..f8f3be73 100644 --- a/LEGO1/legoinputmanager.cpp +++ b/LEGO1/legoinputmanager.cpp @@ -236,4 +236,4 @@ void LegoInputManager::KillTimer() LegoOmni* omni = LegoOmni::GetInstance(); ::KillTimer(omni->GetWindowHandle(), m_timer); } -} \ No newline at end of file +} diff --git a/LEGO1/legometerpresenter.cpp b/LEGO1/legometerpresenter.cpp index 6fed7419..6314a4fd 100644 --- a/LEGO1/legometerpresenter.cpp +++ b/LEGO1/legometerpresenter.cpp @@ -3,4 +3,4 @@ #include "decomp.h" // Uncomment when member class variables are fleshed out. -// DECOMP_SIZE_ASSERT(LegoMeterPresenter, 0x94); // 0x1000a163 \ No newline at end of file +// DECOMP_SIZE_ASSERT(LegoMeterPresenter, 0x94); // 0x1000a163 diff --git a/LEGO1/legonavcontroller.cpp b/LEGO1/legonavcontroller.cpp index b8a0b333..5b5fc38d 100644 --- a/LEGO1/legonavcontroller.cpp +++ b/LEGO1/legonavcontroller.cpp @@ -224,4 +224,4 @@ float LegoNavController::CalculateNewVel(float p_targetVel, float p_currentVel, } return newVel; -} \ No newline at end of file +} diff --git a/LEGO1/legopathactor.cpp b/LEGO1/legopathactor.cpp index 0fe65213..58e9371b 100644 --- a/LEGO1/legopathactor.cpp +++ b/LEGO1/legopathactor.cpp @@ -164,4 +164,4 @@ void LegoPathActor::VTable0xa4() void LegoPathActor::VTable0xa8() { // TODO -} \ No newline at end of file +} diff --git a/LEGO1/legostate.cpp b/LEGO1/legostate.cpp index b82c07a3..2c2c3acc 100644 --- a/LEGO1/legostate.cpp +++ b/LEGO1/legostate.cpp @@ -39,4 +39,4 @@ LegoFileStream* LegoFileStream::FUN_10006030(MxString p_str) Write(data, (MxS16) fullLength); return this; -} \ No newline at end of file +} diff --git a/LEGO1/legoworld.cpp b/LEGO1/legoworld.cpp index 49043c0f..45fddf98 100644 --- a/LEGO1/legoworld.cpp +++ b/LEGO1/legoworld.cpp @@ -86,4 +86,4 @@ void SetIsWorldActive(MxBool p_isWorldActive) if (!p_isWorldActive) LegoOmni::GetInstance()->GetInputManager()->SetCamera(NULL); g_isWorldActive = p_isWorldActive; -} \ No newline at end of file +} diff --git a/LEGO1/mxappnotificationparam.cpp b/LEGO1/mxappnotificationparam.cpp index fd12ba47..8138a6cf 100644 --- a/LEGO1/mxappnotificationparam.cpp +++ b/LEGO1/mxappnotificationparam.cpp @@ -1,3 +1,3 @@ #include "mxappnotificationparam.h" -DECOMP_SIZE_ASSERT(MxAppNotificationParam, 0x1c) \ No newline at end of file +DECOMP_SIZE_ASSERT(MxAppNotificationParam, 0x1c) diff --git a/LEGO1/mxappnotificationparam.h b/LEGO1/mxappnotificationparam.h index 00ddd82b..ba144c31 100644 --- a/LEGO1/mxappnotificationparam.h +++ b/LEGO1/mxappnotificationparam.h @@ -17,4 +17,4 @@ class MxAppNotificationParam : public MxNotificationParam { MxU8 m_unk18; }; -#endif // MXAPPNOTIFICATIONPARAM_H \ No newline at end of file +#endif // MXAPPNOTIFICATIONPARAM_H diff --git a/LEGO1/mxatomidcounter.h b/LEGO1/mxatomidcounter.h index 19c8ea03..3cfd7cb7 100644 --- a/LEGO1/mxatomidcounter.h +++ b/LEGO1/mxatomidcounter.h @@ -43,4 +43,4 @@ struct MxAtomIdCounterCompare { class MxAtomIdCounterSet : public set {}; -#endif // MXATOMIDCOUNTER_H \ No newline at end of file +#endif // MXATOMIDCOUNTER_H diff --git a/LEGO1/mxaudiomanager.cpp b/LEGO1/mxaudiomanager.cpp index 1f5453c0..759bc2c9 100644 --- a/LEGO1/mxaudiomanager.cpp +++ b/LEGO1/mxaudiomanager.cpp @@ -75,4 +75,4 @@ MxResult MxAudioManager::InitPresenters() void MxAudioManager::Destroy() { Destroy(FALSE); -} \ No newline at end of file +} diff --git a/LEGO1/mxbackgroundaudiomanager.cpp b/LEGO1/mxbackgroundaudiomanager.cpp index c56c86c3..e9106177 100644 --- a/LEGO1/mxbackgroundaudiomanager.cpp +++ b/LEGO1/mxbackgroundaudiomanager.cpp @@ -105,4 +105,4 @@ void MxBackgroundAudioManager::DestroyMusic() Streamer()->Close(m_script.GetInternal()); m_musicEnabled = FALSE; } -} \ No newline at end of file +} diff --git a/LEGO1/mxcompositemediapresenter.cpp b/LEGO1/mxcompositemediapresenter.cpp index 69d814b2..ff46bb37 100644 --- a/LEGO1/mxcompositemediapresenter.cpp +++ b/LEGO1/mxcompositemediapresenter.cpp @@ -4,4 +4,4 @@ MxCompositeMediaPresenter::MxCompositeMediaPresenter() { // TODO -} \ No newline at end of file +} diff --git a/LEGO1/mxcontrolpresenter.cpp b/LEGO1/mxcontrolpresenter.cpp index 70615e33..158e7460 100644 --- a/LEGO1/mxcontrolpresenter.cpp +++ b/LEGO1/mxcontrolpresenter.cpp @@ -11,4 +11,4 @@ MxControlPresenter::MxControlPresenter() this->m_unk52 = 0; this->m_unk58 = 0; this->m_unk54 = 0; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsactionlist.cpp b/LEGO1/mxdsactionlist.cpp index 254d311e..394512e5 100644 --- a/LEGO1/mxdsactionlist.cpp +++ b/LEGO1/mxdsactionlist.cpp @@ -20,4 +20,4 @@ void MxDSActionList::Destroy(MxDSAction* p_action) { if (p_action) delete p_action; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsanim.cpp b/LEGO1/mxdsanim.cpp index eccec392..8251fd70 100644 --- a/LEGO1/mxdsanim.cpp +++ b/LEGO1/mxdsanim.cpp @@ -38,4 +38,4 @@ MxDSAction* MxDSAnim::Clone() *clone = *this; return clone; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsevent.cpp b/LEGO1/mxdsevent.cpp index e3996542..152e6d77 100644 --- a/LEGO1/mxdsevent.cpp +++ b/LEGO1/mxdsevent.cpp @@ -38,4 +38,4 @@ MxDSAction* MxDSEvent::Clone() *clone = *this; return clone; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsmediaaction.cpp b/LEGO1/mxdsmediaaction.cpp index ab27538b..61c75654 100644 --- a/LEGO1/mxdsmediaaction.cpp +++ b/LEGO1/mxdsmediaaction.cpp @@ -91,4 +91,4 @@ void MxDSMediaAction::CopyMediaSrcPath(const char* p_mediaSrcPath) } else this->m_mediaSrcPath = NULL; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsmultiaction.cpp b/LEGO1/mxdsmultiaction.cpp index 5b3d796d..d990a595 100644 --- a/LEGO1/mxdsmultiaction.cpp +++ b/LEGO1/mxdsmultiaction.cpp @@ -151,4 +151,4 @@ void MxDSMultiAction::SetAtomId(MxAtomId p_atomId) MxDSAction* action; while (cursor.Next(action)) action->SetAtomId(p_atomId); -} \ No newline at end of file +} diff --git a/LEGO1/mxdsobject.cpp b/LEGO1/mxdsobject.cpp index 9bcf28f4..c2fd7a88 100644 --- a/LEGO1/mxdsobject.cpp +++ b/LEGO1/mxdsobject.cpp @@ -191,4 +191,4 @@ MxDSObject* DeserializeDSObjectDispatch(char** p_source, MxS16 p_flags) } return obj; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsparallelaction.cpp b/LEGO1/mxdsparallelaction.cpp index bb6e510e..ada89bd7 100644 --- a/LEGO1/mxdsparallelaction.cpp +++ b/LEGO1/mxdsparallelaction.cpp @@ -84,4 +84,4 @@ MxLong MxDSParallelAction::GetDuration() this->m_duration *= this->m_loopCount; return this->m_duration; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsselectaction.cpp b/LEGO1/mxdsselectaction.cpp index 3479fd96..291a14df 100644 --- a/LEGO1/mxdsselectaction.cpp +++ b/LEGO1/mxdsselectaction.cpp @@ -129,4 +129,4 @@ void MxDSSelectAction::Deserialize(char** p_source, MxS16 p_unk24) } *p_source += extraFlag; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsserialaction.cpp b/LEGO1/mxdsserialaction.cpp index 563001b6..754e1cb6 100644 --- a/LEGO1/mxdsserialaction.cpp +++ b/LEGO1/mxdsserialaction.cpp @@ -78,4 +78,4 @@ MxLong MxDSSerialAction::GetDuration() } return this->m_duration; -} \ No newline at end of file +} diff --git a/LEGO1/mxdssound.cpp b/LEGO1/mxdssound.cpp index c008e6d2..32ec470e 100644 --- a/LEGO1/mxdssound.cpp +++ b/LEGO1/mxdssound.cpp @@ -60,4 +60,4 @@ MxDSAction* MxDSSound::Clone() *clone = *this; return clone; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsstill.cpp b/LEGO1/mxdsstill.cpp index 867f0883..c99c033f 100644 --- a/LEGO1/mxdsstill.cpp +++ b/LEGO1/mxdsstill.cpp @@ -38,4 +38,4 @@ MxDSAction* MxDSStill::Clone() *clone = *this; return clone; -} \ No newline at end of file +} diff --git a/LEGO1/mxdsstreamingaction.cpp b/LEGO1/mxdsstreamingaction.cpp index 9d030286..ec241943 100644 --- a/LEGO1/mxdsstreamingaction.cpp +++ b/LEGO1/mxdsstreamingaction.cpp @@ -89,4 +89,4 @@ void MxDSStreamingAction::FUN_100CD2D0() this->m_duration -= duration; this->m_unka8 += duration; -} \ No newline at end of file +} diff --git a/LEGO1/mxmatrix.h b/LEGO1/mxmatrix.h index 77ffb5a4..b9d5420d 100644 --- a/LEGO1/mxmatrix.h +++ b/LEGO1/mxmatrix.h @@ -65,4 +65,4 @@ class MxMatrixData : public MxMatrix { }; }; -#endif // MXMATRIX_H \ No newline at end of file +#endif // MXMATRIX_H diff --git a/LEGO1/mxmediamanager.cpp b/LEGO1/mxmediamanager.cpp index f87c2387..8fa2ec32 100644 --- a/LEGO1/mxmediamanager.cpp +++ b/LEGO1/mxmediamanager.cpp @@ -99,4 +99,4 @@ void MxMediaManager::StopPresenters() while (cursor.Next(presenter)) presenter->EndAction(); -} \ No newline at end of file +} diff --git a/LEGO1/mxmidipresenter.cpp b/LEGO1/mxmidipresenter.cpp index 2d238e78..59e30fa3 100644 --- a/LEGO1/mxmidipresenter.cpp +++ b/LEGO1/mxmidipresenter.cpp @@ -36,4 +36,4 @@ void MxMIDIPresenter::DoneTickle() if (!MusicManager()->GetMIDIInitialized()) { this->EndAction(); } -} \ No newline at end of file +} diff --git a/LEGO1/mxmusicmanager.cpp b/LEGO1/mxmusicmanager.cpp index 5eb4f4ac..542bea64 100644 --- a/LEGO1/mxmusicmanager.cpp +++ b/LEGO1/mxmusicmanager.cpp @@ -143,4 +143,4 @@ MxResult MxMusicManager::Create(MxU32 p_frequencyMS, MxBool p_createThread) m_criticalSection.Leave(); return status; -} \ No newline at end of file +} diff --git a/LEGO1/mxmusicmanager.h b/LEGO1/mxmusicmanager.h index 0ca09956..f128b1b6 100644 --- a/LEGO1/mxmusicmanager.h +++ b/LEGO1/mxmusicmanager.h @@ -40,4 +40,4 @@ class MxMusicManager : public MxAudioManager { void InitData(); }; -#endif // MXMUSICMANAGER_H \ No newline at end of file +#endif // MXMUSICMANAGER_H diff --git a/LEGO1/mxnotificationmanager.cpp b/LEGO1/mxnotificationmanager.cpp index 0ac63e18..a54d185d 100644 --- a/LEGO1/mxnotificationmanager.cpp +++ b/LEGO1/mxnotificationmanager.cpp @@ -183,4 +183,4 @@ MxResult MxNotificationManager::Send(MxCore* p_listener, MxNotificationParam* p_ } return FAILURE; -} \ No newline at end of file +} diff --git a/LEGO1/mxregion.cpp b/LEGO1/mxregion.cpp index ce647906..5b7237cb 100644 --- a/LEGO1/mxregion.cpp +++ b/LEGO1/mxregion.cpp @@ -37,4 +37,4 @@ MxBool MxRegion::vtable20() { // TODO return FALSE; -} \ No newline at end of file +} diff --git a/LEGO1/mxsemaphore.cpp b/LEGO1/mxsemaphore.cpp index 7612e660..dfcb8707 100644 --- a/LEGO1/mxsemaphore.cpp +++ b/LEGO1/mxsemaphore.cpp @@ -26,4 +26,4 @@ void MxSemaphore::Wait(MxU32 p_timeoutMS) void MxSemaphore::Release(MxU32 p_releaseCount) { ReleaseSemaphore(m_hSemaphore, p_releaseCount, NULL); -} \ No newline at end of file +} diff --git a/LEGO1/mxsemaphore.h b/LEGO1/mxsemaphore.h index 3a17acdb..3bc6d66b 100644 --- a/LEGO1/mxsemaphore.h +++ b/LEGO1/mxsemaphore.h @@ -21,4 +21,4 @@ class MxSemaphore { HANDLE m_hSemaphore; }; -#endif // MX_SEMAPHORE_H \ No newline at end of file +#endif // MX_SEMAPHORE_H diff --git a/LEGO1/mxstreamer.cpp b/LEGO1/mxstreamer.cpp index 1e2a9c90..b08be4bd 100644 --- a/LEGO1/mxstreamer.cpp +++ b/LEGO1/mxstreamer.cpp @@ -184,4 +184,4 @@ MxStreamerSubClass1::MxStreamerSubClass1(undefined4 size) for (int i = 0; i >= 0; i--) { ptr[i] = 0; } -} \ No newline at end of file +} diff --git a/LEGO1/mxthread.cpp b/LEGO1/mxthread.cpp index 507e1c3b..fd252799 100644 --- a/LEGO1/mxthread.cpp +++ b/LEGO1/mxthread.cpp @@ -96,4 +96,4 @@ MxResult MxTickleThread::Run() Sleep(timeRemainingMS); } return MxThread::Run(); -} \ No newline at end of file +} diff --git a/LEGO1/mxtype17notificationparam.cpp b/LEGO1/mxtype17notificationparam.cpp index 50cc1294..dbb047f6 100644 --- a/LEGO1/mxtype17notificationparam.cpp +++ b/LEGO1/mxtype17notificationparam.cpp @@ -1,3 +1,3 @@ #include "mxtype17notificationparam.h" -DECOMP_SIZE_ASSERT(MxType17NotificationParam, 0x2c) \ No newline at end of file +DECOMP_SIZE_ASSERT(MxType17NotificationParam, 0x2c) diff --git a/LEGO1/mxtype17notificationparam.h b/LEGO1/mxtype17notificationparam.h index 18859420..061cb768 100644 --- a/LEGO1/mxtype17notificationparam.h +++ b/LEGO1/mxtype17notificationparam.h @@ -17,4 +17,4 @@ class MxType17NotificationParam : public MxNotificationParam { MxU16 m_unk28; }; -#endif // MXTYPE17NOTIFICATIONPARAM_H \ No newline at end of file +#endif // MXTYPE17NOTIFICATIONPARAM_H diff --git a/LEGO1/mxunklist.h b/LEGO1/mxunklist.h index 2bb0c847..cdbdeb13 100644 --- a/LEGO1/mxunklist.h +++ b/LEGO1/mxunklist.h @@ -35,4 +35,4 @@ class MxUnkList { MxU32 m_count; }; -#endif // MXUNKLIST_H \ No newline at end of file +#endif // MXUNKLIST_H diff --git a/LEGO1/pizzamissionstate.cpp b/LEGO1/pizzamissionstate.cpp index 363af636..83d5457c 100644 --- a/LEGO1/pizzamissionstate.cpp +++ b/LEGO1/pizzamissionstate.cpp @@ -10,4 +10,4 @@ PizzaMissionStateEntry* PizzaMissionState::GetState(MxU8 id) if (m_state[i].m_id == id) return m_state + i; return NULL; -} \ No newline at end of file +} diff --git a/LEGO1/racestate.cpp b/LEGO1/racestate.cpp index be1a1dc5..a690323e 100644 --- a/LEGO1/racestate.cpp +++ b/LEGO1/racestate.cpp @@ -20,4 +20,4 @@ RaceStateEntry* RaceState::GetState(MxU8 id) if (m_state[i].m_id == id) return m_state + i; } -} \ No newline at end of file +} diff --git a/LEGO1/radio.cpp b/LEGO1/radio.cpp index 9eae9166..8ed47409 100644 --- a/LEGO1/radio.cpp +++ b/LEGO1/radio.cpp @@ -4,4 +4,4 @@ Radio::~Radio() { // TODO -} \ No newline at end of file +} diff --git a/LEGO1/score.cpp b/LEGO1/score.cpp index e420e5cc..5aa31bee 100644 --- a/LEGO1/score.cpp +++ b/LEGO1/score.cpp @@ -324,4 +324,4 @@ MxBool Score::VTable0x64() DeleteScript(); m_unkf8 = 2; return TRUE; -} \ No newline at end of file +}