// // cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames from 0x180095c40 to 0x180095ce7 (167 bytes) // // 4 xrefs: // > @ 0x180146fd8 // > @ 0x180146fe8 // > @ 0x18014cf68 // > @ 0x1801c0648 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:22:09 +0000 // void __fastcall cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames(cocos2d::CCSpriteFrameCache *this) { __int64 v1; // rdi char v2; // si __int64 v4; // rdi __int64 i; // rbx _QWORD *v6; // rdi _QWORD *v7; // rbx v1 = *((_QWORD *)this + 7); v2 = 0; if ( v1 ) { v4 = *(_QWORD *)(v1 + 56); if ( v4 ) { for ( i = *(_QWORD *)(v4 + 288); ; i = *(_QWORD *)(i + 288) ) { if ( (unsigned int)cocos2d::CCObject::retainCount(*(cocos2d::CCObject **)(v4 + 264)) == 1 ) { cocos2d::CCDictionary::removeObjectForElememt( *((cocos2d::CCDictionary **)this + 7), (struct cocos2d::CCDictElement *)v4); v2 = 1; } v4 = i; if ( !i ) break; } if ( v2 ) { v6 = *((_QWORD **)this + 9); v7 = (_QWORD *)*v6; sub_180093690((__int64)v6, (__int64)v6, *(_QWORD *)(*v6 + 8LL)); v7[1] = v7; *v7 = v7; v7[2] = v7; v6[1] = 0; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source