diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 89fede7..61c3269 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -2,6 +2,7 @@ #include "async/AsyncFile.hpp" #include "client/ClientHandlers.hpp" #include "client/ClientServices.hpp" +#include "component/CCharacterComponent.hpp" #include "console/CVar.hpp" #include "console/Device.hpp" #include "console/Initialize.hpp" @@ -439,7 +440,8 @@ void WowClientInit() { // TODO // sub_6F75E0(); - // sub_401FF0(); + + CCharacterComponent::Initialize(); ClientServices::Initialize(); // TODO ClientServices::SetMessageHandler(SMSG_TUTORIAL_FLAGS, (int)sub_530920, 0); diff --git a/src/component/CCharacterComponent.cpp b/src/component/CCharacterComponent.cpp index 36ff157..f6b59c8 100644 --- a/src/component/CCharacterComponent.cpp +++ b/src/component/CCharacterComponent.cpp @@ -9,6 +9,17 @@ CCharacterComponent* CCharacterComponent::AllocComponent() { return STORM_NEW(CCharacterComponent); } +void CCharacterComponent::Initialize() { + // TODO + + // TODO proper implementation + CCharacterComponent::Initialize(GxTex_Rgb565, 9, 0, 0); +} + +void CCharacterComponent::Initialize(EGxTexFormat textureFormat, uint32_t textureLevel, int32_t thread, int32_t compress) { + // TODO +} + void CCharacterComponent::CreateBaseTexture() { // TODO } diff --git a/src/component/CCharacterComponent.hpp b/src/component/CCharacterComponent.hpp index c47c1ec..1cf98e6 100644 --- a/src/component/CCharacterComponent.hpp +++ b/src/component/CCharacterComponent.hpp @@ -47,6 +47,8 @@ class CCharacterComponent { public: // Static functions static CCharacterComponent* AllocComponent(); + static void Initialize(); + static void Initialize(EGxTexFormat textureFormat, uint32_t textureLevel, int32_t thread, int32_t compress); // Member variables uint32_t m_flags = 0x1 | 0x2 | 0x4;