// // cocos2d::CCTextureCache::removeUnusedTextures from 0x5f4d68 to 0x5f4e0e (166 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::CCTextureCache::removeUnusedTextures(cocos2d::CCTextureCache *a1) { cocos2d::CCDictionary *m_pTextures; // r3 cocos2d::CCDictElement *i; // r4 cocos2d::CCDictElement *m_pElements; // r4 cocos2d::CCDictElement *next; // r5 _DWORD *v6; // r0 cocos2d::CCDictElement *v7; // r3 void **j; // r0 void **v9; // r4 void *p[2]; // [sp+4h] [bp-10h] BYREF if ( cocos2d::CCDictionary::count(a1->m_pTextures) ) { m_pTextures = a1->m_pTextures; p[0] = p; p[1] = p; if ( m_pTextures ) { m_pElements = m_pTextures->m_pElements; if ( m_pElements ) next = (cocos2d::CCDictElement *)m_pElements->hh.next; else next = nullptr; while ( m_pElements ) { if ( cocos2d::CCObject::retainCount(m_pElements->m_pObject) == 1 ) { v6 = (_DWORD *)operator new(0xCu); *v6 = 0; v6[1] = 0; v6[2] = m_pElements; sub_74AAF0(); } if ( next ) v7 = (cocos2d::CCDictElement *)next->hh.next; else v7 = nullptr; m_pElements = next; next = v7; } } for ( i = (cocos2d::CCDictElement *)p[0]; i != (cocos2d::CCDictElement *)p; i = *(cocos2d::CCDictElement **)i->m_szKey ) cocos2d::CCDictionary::removeObjectForElememt(a1->m_pTextures, *(cocos2d::CCDictElement **)&i->m_szKey[8]); for ( j = (void **)p[0]; j != p; j = v9 ) { v9 = (void **)*j; operator delete(j); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source