// // cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames from 0x5e9958 to 0x5e99b4 (92 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::CCSpriteFrameCache::removeUnusedSpriteFrames(cocos2d::CCSpriteFrameCache *a1) { cocos2d::CCSpriteFrameCache_vtbl *v1; // r3 cocos2d::CCDictElement *isEqual; // r4 cocos2d::CCDictElement *v4; // r5 int v5; // r7 cocos2d::CCDictElement *next; // r3 int m_nLuaID; // r5 v1 = a1[1].__vftable; if ( v1 ) { isEqual = (cocos2d::CCDictElement *)v1[1].isEqual; v4 = isEqual ? (cocos2d::CCDictElement *)isEqual->hh.next : nullptr; v5 = 0; while ( isEqual ) { if ( cocos2d::CCObject::retainCount(isEqual->m_pObject) == 1 ) { cocos2d::CCDictionary::removeObjectForElememt((cocos2d::CCDictionary *)a1[1].__vftable, isEqual); v5 = 1; } if ( v4 ) next = (cocos2d::CCDictElement *)v4->hh.next; else next = nullptr; isEqual = v4; v4 = next; } if ( v5 ) { m_nLuaID = a1[1].m_nLuaID; std::_Rb_tree,std::less,std::allocator>::_M_erase( m_nLuaID, *(_DWORD **)(m_nLuaID + 8)); *(_DWORD *)(m_nLuaID + 8) = 0; *(_DWORD *)(m_nLuaID + 12) = m_nLuaID + 4; *(_DWORD *)(m_nLuaID + 16) = m_nLuaID + 4; *(_DWORD *)(m_nLuaID + 20) = 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source