feat(component): implement CCharacterComponent::VariationsLoaded

This commit is contained in:
fallenoak 2025-10-20 00:04:36 -05:00
parent d958cadb24
commit 9f9a17e172
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
3 changed files with 21 additions and 1 deletions

View File

@ -252,7 +252,19 @@ void CCharacterComponent::SetSkinColor(int32_t skinColorID, bool a3, bool a4, co
} }
int32_t CCharacterComponent::VariationsLoaded(int32_t a2) { int32_t CCharacterComponent::VariationsLoaded(int32_t a2) {
// TODO TCTEXTUREINFO info;
for (int32_t v = 0; v < NUM_COMPONENT_VARIATIONS; v++) {
for (int32_t t = 0; t < 3; t++) {
auto texture = this->m_texture[TEXTURE_INDEX(v, t)];
if (texture && !TextureCacheGetInfo(texture, info, a2)) {
return 0;
}
}
}
this->m_flags &= ~0x2;
return 1; return 1;
} }

View File

@ -67,3 +67,9 @@ void* TextureCacheCreateTexture(const char* fileName) {
void TextureCacheDestroyTexture(void* texture) { void TextureCacheDestroyTexture(void* texture) {
// TODO // TODO
} }
int32_t TextureCacheGetInfo(void* texture, TCTEXTUREINFO& info, int32_t a3) {
// TODO
return 0;
}

View File

@ -36,4 +36,6 @@ void* TextureCacheCreateTexture(const char* fileName);
void TextureCacheDestroyTexture(void* texture); void TextureCacheDestroyTexture(void* texture);
int32_t TextureCacheGetInfo(void* texture, TCTEXTUREINFO& info, int32_t a3);
#endif #endif