From 66d35791734c3f39365157a4bf915a33b5364903 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Wed, 15 Oct 2025 20:11:26 -0500 Subject: [PATCH] feat(component): implement more of CCharacterComponent::RenderPrep --- src/component/CCharacterComponent.cpp | 36 +++++++++++++++++++++++++-- src/component/CCharacterComponent.hpp | 5 +++- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/src/component/CCharacterComponent.cpp b/src/component/CCharacterComponent.cpp index 1686ded..9458a11 100644 --- a/src/component/CCharacterComponent.cpp +++ b/src/component/CCharacterComponent.cpp @@ -38,14 +38,46 @@ void CCharacterComponent::Init(ComponentData* data, const char* a3) { // TODO } -void CCharacterComponent::RenderPrep(int32_t a2) { +int32_t CCharacterComponent::ItemsLoaded(int32_t a2) { + // TODO + + return 1; +} + +int32_t CCharacterComponent::RenderPrep(int32_t a2) { if (this->m_data.flags & 0x1) { if (this->m_flags & 0x4) { this->GeosRenderPrep(); } - return; + return 1; + } + + // TODO + + if (a2) { + // TODO + + this->VariationsLoaded(1); + this->ItemsLoaded(1); + + this->m_flags |= 8u; + + this->RenderPrepSections(); + // TODO this->Sub79F820(); + + return 1; } // TODO } + +void CCharacterComponent::RenderPrepSections() { + // TODO +} + +int32_t CCharacterComponent::VariationsLoaded(int32_t a2) { + // TODO + + return 1; +} diff --git a/src/component/CCharacterComponent.hpp b/src/component/CCharacterComponent.hpp index 6e11550..156422a 100644 --- a/src/component/CCharacterComponent.hpp +++ b/src/component/CCharacterComponent.hpp @@ -54,7 +54,10 @@ class CCharacterComponent { // Member functions void GeosRenderPrep(); void Init(ComponentData* data, const char* a3); - void RenderPrep(int32_t a2); + int32_t ItemsLoaded(int32_t a2); + int32_t RenderPrep(int32_t a2); + void RenderPrepSections(); + int32_t VariationsLoaded(int32_t a2); }; #endif