feat(component): implement CCharacterComponent::VariationsLoaded

This commit is contained in:
fallenoak committed 2025-10-20 00:04:36 -05:00
1 parent d958cadb24
commit 9f9a17e172
3 files changed
+21 -1

No files matched your search

+13 -1
View File
@@ -252,7 +252,19 @@ void CCharacterComponent::SetSkinColor(int32_t skinColorID, bool a3, bool a4, co
}
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;
}
+6
View File
@@ -67,3 +67,9 @@ void* TextureCacheCreateTexture(const char* fileName) {
void TextureCacheDestroyTexture(void* texture) {
// TODO
}
int32_t TextureCacheGetInfo(void* texture, TCTEXTUREINFO& info, int32_t a3) {
// TODO
return 0;
}
+2
View File
@@ -36,4 +36,6 @@ void* TextureCacheCreateTexture(const char* fileName);
void TextureCacheDestroyTexture(void* texture);
int32_t TextureCacheGetInfo(void* texture, TCTEXTUREINFO& info, int32_t a3);
#endif