chore(component): tweak return type for TextureCacheCreateTexture

This commit is contained in:
fallenoak 2025-10-18 15:47:04 -05:00
parent dcc1f26a29
commit 11ce4b168e
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ class CCharacterComponent {
uint32_t m_sections = 0xFFFFFFFF; uint32_t m_sections = 0xFFFFFFFF;
ComponentData m_data; ComponentData m_data;
HTEXTURE m_baseTexture = nullptr; HTEXTURE m_baseTexture = nullptr;
CACHEENTRY* m_texture[NUM_COMPONENT_VARIATIONS * 3] = {}; void* m_texture[NUM_COMPONENT_VARIATIONS * 3] = {};
// Member functions // Member functions
void CreateBaseTexture(); void CreateBaseTexture();

View File

@ -30,7 +30,7 @@ CACHEENTRY* TextureCacheAllocEntry() {
return entry; return entry;
} }
CACHEENTRY* TextureCacheCreateTexture(const char* fileName) { void* TextureCacheCreateTexture(const char* fileName) {
auto hashval = SStrHash(fileName); auto hashval = SStrHash(fileName);
auto texture = s_cacheTable.Ptr(hashval, s_cacheKey); auto texture = s_cacheTable.Ptr(hashval, s_cacheKey);

View File

@ -17,7 +17,7 @@ class CACHEENTRY : public TSHashObject<CACHEENTRY, HASHKEY_NONE> {
void AddRef(); void AddRef();
}; };
CACHEENTRY* TextureCacheCreateTexture(const char* fileName); void* TextureCacheCreateTexture(const char* fileName);
void TextureCacheDestroyTexture(void* texture); void TextureCacheDestroyTexture(void* texture);