diff --git a/LEGO1/lego/legoomni/include/legoanimpresenter.h b/LEGO1/lego/legoomni/include/legoanimpresenter.h index 7ae607fd..6492c701 100644 --- a/LEGO1/lego/legoomni/include/legoanimpresenter.h +++ b/LEGO1/lego/legoomni/include/legoanimpresenter.h @@ -38,7 +38,7 @@ class LegoAnimPresenter : public MxVideoPresenter { MxResult StartAction(MxStreamController* p_controller, MxDSAction* p_action) override; // vtable+0x3c void EndAction() override; // vtable+0x40 void PutFrame() override; // vtable+0x6c - virtual MxResult VTable0x88(MxStreamChunk* p_chunk); // vtable+0x88 + virtual MxResult CreateAnim(MxStreamChunk* p_chunk); // vtable+0x88 inline LegoAnim* GetAnimation() { return m_anim; } diff --git a/LEGO1/lego/legoomni/include/legocachesoundlist.h b/LEGO1/lego/legoomni/include/legocachesoundlist.h index 25459911..4960f6b3 100644 --- a/LEGO1/lego/legoomni/include/legocachesoundlist.h +++ b/LEGO1/lego/legoomni/include/legocachesoundlist.h @@ -38,7 +38,7 @@ class LegoCacheSoundList : public MxPtrList { // SIZE 0x10 class LegoCacheSoundListCursor : public MxPtrListCursor { public: - LegoCacheSoundListCursor(LegoCacheSoundList* p_list) : MxPtrListCursor(p_list){}; + LegoCacheSoundListCursor(LegoCacheSoundList* p_list) : MxPtrListCursor(p_list) {} }; // TEMPLATE: LEGO1 0x1001e670 diff --git a/LEGO1/lego/legoomni/include/legoentitylist.h b/LEGO1/lego/legoomni/include/legoentitylist.h index 938c85d4..783692b3 100644 --- a/LEGO1/lego/legoomni/include/legoentitylist.h +++ b/LEGO1/lego/legoomni/include/legoentitylist.h @@ -38,7 +38,7 @@ class LegoEntityList : public MxPtrList { // SIZE 0x10 class LegoEntityListCursor : public MxPtrListCursor { public: - LegoEntityListCursor(LegoEntityList* p_list) : MxPtrListCursor(p_list){}; + LegoEntityListCursor(LegoEntityList* p_list) : MxPtrListCursor(p_list) {} }; // TEMPLATE: LEGO1 0x1001e2f0 diff --git a/LEGO1/lego/legoomni/include/legolocomotionanimpresenter.h b/LEGO1/lego/legoomni/include/legolocomotionanimpresenter.h index 2a78176d..55eda20b 100644 --- a/LEGO1/lego/legoomni/include/legolocomotionanimpresenter.h +++ b/LEGO1/lego/legoomni/include/legolocomotionanimpresenter.h @@ -30,7 +30,7 @@ class LegoLocomotionAnimPresenter : public LegoLoopingAnimPresenter { void Destroy() override; // vtable+0x38 void EndAction() override; // vtable+0x40 void PutFrame() override; // vtable+0x6c - MxResult VTable0x88(MxStreamChunk* p_chunk) override; // vtable+0x88 + MxResult CreateAnim(MxStreamChunk* p_chunk) override; // vtable+0x88 // SYNTHETIC: LEGO1 0x1006cfe0 // LegoLocomotionAnimPresenter::`scalar deleting destructor' diff --git a/LEGO1/lego/legoomni/include/legopathcontrollerlist.h b/LEGO1/lego/legoomni/include/legopathcontrollerlist.h index af2642a2..f3728b06 100644 --- a/LEGO1/lego/legoomni/include/legopathcontrollerlist.h +++ b/LEGO1/lego/legoomni/include/legopathcontrollerlist.h @@ -37,7 +37,7 @@ class LegoPathControllerList : public MxPtrList { // SIZE 0x10 class LegoPathControllerListCursor : public MxPtrListCursor { public: - LegoPathControllerListCursor(LegoPathControllerList* p_list) : MxPtrListCursor(p_list){}; + LegoPathControllerListCursor(LegoPathControllerList* p_list) : MxPtrListCursor(p_list) {} }; // TEMPLATE: LEGO1 0x1001d230 diff --git a/LEGO1/lego/legoomni/include/legoworldlist.h b/LEGO1/lego/legoomni/include/legoworldlist.h index 577d310f..6d1006b0 100644 --- a/LEGO1/lego/legoomni/include/legoworldlist.h +++ b/LEGO1/lego/legoomni/include/legoworldlist.h @@ -38,7 +38,7 @@ class LegoWorldList : public MxPtrList { // SIZE 0x10 class LegoWorldListCursor : public MxPtrListCursor { public: - LegoWorldListCursor(LegoWorldList* p_list) : MxPtrListCursor(p_list){}; + LegoWorldListCursor(LegoWorldList* p_list) : MxPtrListCursor(p_list) {} }; // SYNTHETIC: LEGO1 0x1003e870 diff --git a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp index ba22865c..a841b50d 100644 --- a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp @@ -54,7 +54,7 @@ void LegoAnimPresenter::Destroy(MxBool p_fromDestructor) } // FUNCTION: LEGO1 0x10068fb0 -MxResult LegoAnimPresenter::VTable0x88(MxStreamChunk* p_chunk) +MxResult LegoAnimPresenter::CreateAnim(MxStreamChunk* p_chunk) { MxResult result = FAILURE; LegoMemory storage(p_chunk->GetData()); @@ -120,7 +120,7 @@ void LegoAnimPresenter::ReadyTickle() if (chunk && chunk->GetTime() + m_action->GetStartTime() <= m_action->GetElapsedTime()) { chunk = m_subscriber->PopData(); - MxResult result = VTable0x88(chunk); + MxResult result = CreateAnim(chunk); m_subscriber->FreeDataChunk(chunk); if (result == SUCCESS) { diff --git a/LEGO1/lego/legoomni/src/video/legolocomotionanimpresenter.cpp b/LEGO1/lego/legoomni/src/video/legolocomotionanimpresenter.cpp index 45098aac..4886245e 100644 --- a/LEGO1/lego/legoomni/src/video/legolocomotionanimpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legolocomotionanimpresenter.cpp @@ -52,9 +52,9 @@ void LegoLocomotionAnimPresenter::Destroy(MxBool p_fromDestructor) } // FUNCTION: LEGO1 0x1006d140 -MxResult LegoLocomotionAnimPresenter::VTable0x88(MxStreamChunk* p_chunk) +MxResult LegoLocomotionAnimPresenter::CreateAnim(MxStreamChunk* p_chunk) { - MxResult result = LegoAnimPresenter::VTable0x88(p_chunk); + MxResult result = LegoAnimPresenter::CreateAnim(p_chunk); return result == SUCCESS ? SUCCESS : result; } diff --git a/LEGO1/lego/legoomni/src/video/legomodelpresenter.cpp b/LEGO1/lego/legoomni/src/video/legomodelpresenter.cpp index ad3199e2..7a0dac49 100644 --- a/LEGO1/lego/legoomni/src/video/legomodelpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legomodelpresenter.cpp @@ -214,7 +214,7 @@ void LegoModelPresenter::ReadyTickle() if (m_roi != NULL) { if (m_compositePresenter && m_compositePresenter->IsA("LegoEntityPresenter")) { - ((LegoEntityPresenter*) m_compositePresenter)->GetEntity()->SetROI((LegoROI*) m_roi, m_addedToView, TRUE); + ((LegoEntityPresenter*) m_compositePresenter)->GetEntity()->SetROI(m_roi, m_addedToView, TRUE); ((LegoEntityPresenter*) m_compositePresenter) ->GetEntity() ->SetFlags( @@ -240,7 +240,7 @@ void LegoModelPresenter::ReadyTickle() VideoManager()->Get3DManager()->GetLego3DView()->Moved(*m_roi); if (m_compositePresenter != NULL && m_compositePresenter->IsA("LegoEntityPresenter")) { - ((LegoEntityPresenter*) m_compositePresenter)->GetEntity()->SetROI((LegoROI*) m_roi, TRUE, TRUE); + ((LegoEntityPresenter*) m_compositePresenter)->GetEntity()->SetROI(m_roi, TRUE, TRUE); ((LegoEntityPresenter*) m_compositePresenter) ->GetEntity() ->SetFlags( diff --git a/LEGO1/lego/sources/misc/legocontainer.h b/LEGO1/lego/sources/misc/legocontainer.h index 561c2cbd..ac387e0d 100644 --- a/LEGO1/lego/sources/misc/legocontainer.h +++ b/LEGO1/lego/sources/misc/legocontainer.h @@ -13,7 +13,10 @@ #pragma warning(disable : 4237) struct LegoContainerInfoComparator { - LegoU8 operator()(const char* const& p_key0, const char* const& p_key1) const { return strcmp(p_key0, p_key1) > 0; } + LegoBool operator()(const char* const& p_key0, const char* const& p_key1) const + { + return strcmp(p_key0, p_key1) > 0; + } }; // SIZE 0x10 diff --git a/LEGO1/lego/sources/misc/legostorage.h b/LEGO1/lego/sources/misc/legostorage.h index 2e7eb30b..08e295f4 100644 --- a/LEGO1/lego/sources/misc/legostorage.h +++ b/LEGO1/lego/sources/misc/legostorage.h @@ -20,7 +20,7 @@ class LegoStorage { LegoStorage() : m_mode(0) {} // FUNCTION: LEGO1 0x10045ad0 - virtual ~LegoStorage(){}; + virtual ~LegoStorage() {} virtual LegoResult Read(void* p_buffer, LegoU32 p_size) = 0; virtual LegoResult Write(const void* p_buffer, LegoU32 p_size) = 0; diff --git a/LEGO1/omni/include/mxcollection.h b/LEGO1/omni/include/mxcollection.h index 84acdeef..0c21438c 100644 --- a/LEGO1/omni/include/mxcollection.h +++ b/LEGO1/omni/include/mxcollection.h @@ -12,7 +12,7 @@ class MxCollection : public MxCore { SetDestroy(Destroy); } - static void Destroy(T){}; + static void Destroy(T) {} void SetDestroy(void (*p_customDestructor)(T)) { this->m_customDestructor = p_customDestructor; } diff --git a/LEGO1/omni/include/mxdsactionlist.h b/LEGO1/omni/include/mxdsactionlist.h index b413cd2b..6c8b8024 100644 --- a/LEGO1/omni/include/mxdsactionlist.h +++ b/LEGO1/omni/include/mxdsactionlist.h @@ -41,7 +41,7 @@ class MxDSActionList : public MxList { // SIZE 0x10 class MxDSActionListCursor : public MxListCursor { public: - MxDSActionListCursor(MxDSActionList* p_list) : MxListCursor(p_list){}; + MxDSActionListCursor(MxDSActionList* p_list) : MxListCursor(p_list) {} }; // TEMPLATE: LEGO1 0x100c9cc0 diff --git a/LEGO1/omni/include/mxlist.h b/LEGO1/omni/include/mxlist.h index 5ad02492..aeed9646 100644 --- a/LEGO1/omni/include/mxlist.h +++ b/LEGO1/omni/include/mxlist.h @@ -135,7 +135,7 @@ class MxListCursor : public MxCore { template class MxPtrListCursor : public MxListCursor { public: - MxPtrListCursor(MxPtrList* p_list) : MxListCursor(p_list){}; + MxPtrListCursor(MxPtrList* p_list) : MxListCursor(p_list) {} }; template diff --git a/LEGO1/omni/include/mxpresenterlist.h b/LEGO1/omni/include/mxpresenterlist.h index 1c52f360..87430a53 100644 --- a/LEGO1/omni/include/mxpresenterlist.h +++ b/LEGO1/omni/include/mxpresenterlist.h @@ -32,7 +32,7 @@ class MxPresenterList : public MxPtrList { // VTABLE: LEGO1 0x100d6470 class MxPresenterListCursor : public MxPtrListCursor { public: - MxPresenterListCursor(MxPresenterList* p_list) : MxPtrListCursor(p_list){}; + MxPresenterListCursor(MxPresenterList* p_list) : MxPtrListCursor(p_list) {} }; // VTABLE: LEGO1 0x100d6350 diff --git a/LEGO1/omni/include/mxrectlist.h b/LEGO1/omni/include/mxrectlist.h index c25c2483..88cffa9f 100644 --- a/LEGO1/omni/include/mxrectlist.h +++ b/LEGO1/omni/include/mxrectlist.h @@ -20,7 +20,7 @@ class MxRectList : public MxPtrList { // VTABLE: LEGO1 0x100dc420 class MxRectListCursor : public MxPtrListCursor { public: - MxRectListCursor(MxRectList* p_list) : MxPtrListCursor(p_list){}; + MxRectListCursor(MxRectList* p_list) : MxPtrListCursor(p_list) {} }; // VTABLE: LEGO1 0x100dc3d8 diff --git a/LEGO1/omni/include/mxregionlist.h b/LEGO1/omni/include/mxregionlist.h index 9dfd78bd..b7eff3ae 100644 --- a/LEGO1/omni/include/mxregionlist.h +++ b/LEGO1/omni/include/mxregionlist.h @@ -54,7 +54,7 @@ class MxRegionLeftRightList : public MxPtrList { // VTABLE: LEGO1 0x100dcc10 class MxRegionLeftRightListCursor : public MxPtrListCursor { public: - MxRegionLeftRightListCursor(MxRegionLeftRightList* p_list) : MxPtrListCursor(p_list){}; + MxRegionLeftRightListCursor(MxRegionLeftRightList* p_list) : MxPtrListCursor(p_list) {} }; // SIZE 0x0c @@ -116,7 +116,7 @@ class MxRegionTopBottomList : public MxPtrList { // VTABLE: LEGO1 0x100dcb88 class MxRegionTopBottomListCursor : public MxPtrListCursor { public: - MxRegionTopBottomListCursor(MxPtrList* p_list) : MxPtrListCursor(p_list){}; + MxRegionTopBottomListCursor(MxPtrList* p_list) : MxPtrListCursor(p_list) {} }; // TEMPLATE: LEGO1 0x100c32e0 diff --git a/LEGO1/omni/include/mxstreamchunklist.h b/LEGO1/omni/include/mxstreamchunklist.h index defdd4a0..4ae8fabe 100644 --- a/LEGO1/omni/include/mxstreamchunklist.h +++ b/LEGO1/omni/include/mxstreamchunklist.h @@ -35,7 +35,7 @@ class MxStreamChunkList : public MxList { // SIZE 0x10 class MxStreamChunkListCursor : public MxListCursor { public: - MxStreamChunkListCursor(MxStreamChunkList* p_list) : MxListCursor(p_list){}; + MxStreamChunkListCursor(MxStreamChunkList* p_list) : MxListCursor(p_list) {} }; // VTABLE: LEGO1 0x100dc528 diff --git a/LEGO1/omni/include/mxstringlist.h b/LEGO1/omni/include/mxstringlist.h index 6d07584f..7894aabd 100644 --- a/LEGO1/omni/include/mxstringlist.h +++ b/LEGO1/omni/include/mxstringlist.h @@ -12,7 +12,7 @@ class MxStringList : public MxList {}; // SIZE 0x10 class MxStringListCursor : public MxListCursor { public: - MxStringListCursor(MxStringList* p_list) : MxListCursor(p_list){}; + MxStringListCursor(MxStringList* p_list) : MxListCursor(p_list) {} // SYNTHETIC: LEGO1 0x100cb860 // MxStringList::`scalar deleting destructor' diff --git a/LEGO1/omni/include/mxvideopresenter.h b/LEGO1/omni/include/mxvideopresenter.h index 06436163..b7d12597 100644 --- a/LEGO1/omni/include/mxvideopresenter.h +++ b/LEGO1/omni/include/mxvideopresenter.h @@ -43,20 +43,20 @@ class MxVideoPresenter : public MxMediaPresenter { MxBool IsHit(MxS32 p_x, MxS32 p_y) override; // vtable+0x50 // FUNCTION: LEGO1 0x1000c700 - virtual void LoadHeader(MxStreamChunk* p_chunk){}; // vtable+0x5c + virtual void LoadHeader(MxStreamChunk* p_chunk) {} // vtable+0x5c // FUNCTION: LEGO1 0x1000c710 - virtual void CreateBitmap(){}; // vtable+0x60 + virtual void CreateBitmap() {} // vtable+0x60 virtual void NextFrame(); // vtable+0x64 // FUNCTION: LEGO1 0x1000c720 - virtual void LoadFrame(MxStreamChunk* p_chunk){}; // vtable+0x68 + virtual void LoadFrame(MxStreamChunk* p_chunk) {} // vtable+0x68 virtual void PutFrame(); // vtable+0x6c // FUNCTION: LEGO1 0x1000c730 - virtual void RealizePalette(){}; // vtable+0x70 + virtual void RealizePalette() {} // vtable+0x70 virtual undefined VTable0x74(); // vtable+0x74