From d2b05a09831b71d0e3c4052d6b2b33dd8540c08f Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Wed, 27 Dec 2023 13:30:16 -0500 Subject: [PATCH] LegoFlcTexturePresenter init function (#373) * LegoFlcTexturePresenter init function say that 5 times fast * Fixes --------- Co-authored-by: Christian Semmler --- LEGO1/legoflctexturepresenter.cpp | 13 +++++++++++-- LEGO1/legoflctexturepresenter.h | 7 +++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/LEGO1/legoflctexturepresenter.cpp b/LEGO1/legoflctexturepresenter.cpp index 29a49814..f96d2b47 100644 --- a/LEGO1/legoflctexturepresenter.cpp +++ b/LEGO1/legoflctexturepresenter.cpp @@ -1,7 +1,16 @@ #include "legoflctexturepresenter.h" -// STUB: LEGO1 0x1005de80 +DECOMP_SIZE_ASSERT(LegoFlcTexturePresenter, 0x70) + +// FUNCTION: LEGO1 0x1005de80 LegoFlcTexturePresenter::LegoFlcTexturePresenter() { - // TODO + Init(); +} + +// FUNCTION: LEGO1 0x1005df70 +void LegoFlcTexturePresenter::Init() +{ + this->m_unk0x68 = 0; + this->m_unk0x6c = 0; } diff --git a/LEGO1/legoflctexturepresenter.h b/LEGO1/legoflctexturepresenter.h index c68d045d..c55249cf 100644 --- a/LEGO1/legoflctexturepresenter.h +++ b/LEGO1/legoflctexturepresenter.h @@ -1,6 +1,7 @@ #ifndef LEGOFLCTEXTUREPRESENTER_H #define LEGOFLCTEXTUREPRESENTER_H +#include "decomp.h" #include "mxflcpresenter.h" // VTABLE: LEGO1 0x100d89e0 @@ -15,6 +16,12 @@ public: // GLOBAL: LEGO1 0x100f0634 return "LegoFlcTexturePresenter"; } + +private: + void Init(); + + undefined4 m_unk0x68; // 0x68 + undefined4 m_unk0x6c; // 0x6c }; #endif // LEGOFLCTEXTUREPRESENTER_H