// // cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames from 0x10031d3a0 to 0x10031d443 (163 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 __fastcall cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames(cocos2d::CCSpriteFrameCache *a1) { cocos2d::CCSpriteFrameCache_vtbl *v1; // rax cocos2d::CCDictElement *canEncode; // r15 char v3; // r12 cocos2d::CCDictElement *v4; // r14 __int64 v5; // rbx v1 = a1[1].__vftable; if ( v1 ) { canEncode = (cocos2d::CCDictElement *)v1->canEncode; if ( canEncode ) { v3 = 0; LABEL_4: v4 = canEncode; do { canEncode = (cocos2d::CCDictElement *)v4->hh.next; if ( (unsigned int)sub_10048AB20(v4->m_pObject) == 1 ) { cocos2d::CCDictionary::removeObjectForElememt((cocos2d::CCDictionary *)a1[1].__vftable, v4); v3 = 1; if ( canEncode ) goto LABEL_4; goto LABEL_11; } v4 = canEncode; } while ( canEncode ); if ( (v3 & 1) == 0 ) return; LABEL_11: v5 = *(_QWORD *)&a1[1].m_nTag; sub_100207A10(v5, *(_QWORD **)(v5 + 8)); *(_QWORD *)v5 = v5 + 8; *(_OWORD *)(v5 + 8) = 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source