// // cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile from 0x7f45a8 to 0x7f4682 (218 bytes) // // 12 xrefs: // > GauntletSelectLayer::onExit @ 0x60d98e // > GJShopLayer::onExit @ 0x6139b8 // > SecretLayer3::onExit @ 0x61a476 // > SecretLayer2::onExit @ 0x61a6ba // > SecretLayer4::onExit @ 0x623416 // > WorldSelectLayer::onExit @ 0x62cabe // > LevelAreaLayer::onExit @ 0x6a5d3a // > LevelAreaInnerLayer::onExit @ 0x6a5d6e // > SecretRewardsLayer::onExit @ 0x6cfefe // > GJPathsLayer::onExit @ 0x6d1756 // > SecretLayer5::onExit @ 0x6e2896 // > SelectFontLayer2::unloadPreviewSheet @ 0x7a203e // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:01:07 +0000 // int __fastcall cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile( cocos2d::CCSpriteFrameCache *this, const char *a2) { int v4; // r0 const char *v5; // r1 int v6; // r2 cocos2d::CCDictionary *v7; // r0 cocos2d::CCDictionary *v8; // r7 size_t v9; // r0 int v10; // r10 int *v11; // r4 int **v12; // r2 int *v13; // r3 int *i; // r1 int *v15; // r0 unsigned __int8 v17; // [sp+4h] [bp-1Ch] BYREF char v18; // [sp+5h] [bp-1Bh] BYREF cocos2d::CCDictionary *v19; // [sp+Ch] [bp-14h] int v20[3]; // [sp+10h] [bp-10h] BYREF v4 = cocos2d::CCFileUtils::sharedFileUtils(this); (*(void (__fastcall **)(unsigned __int8 *, int, const char *, _DWORD))(*(_DWORD *)v4 + 24))(&v17, v4, a2, 0); if ( (v17 & 1) != 0 ) v7 = v19; else v7 = (cocos2d::CCDictionary *)&v18; v8 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::createWithContentsOfFileThreadSafe(v7, v5, v6, v17 << 31); cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary(this, v8); memset(v20, 0, sizeof(v20)); v9 = strlen(a2); v10 = *((_DWORD *)this + 15); std::string::__init(v20, a2, v9); v11 = std::__tree::find(v10, (unsigned __int8 *)v20); std::string::~string((int)v20); v12 = *((int ***)this + 15); if ( v11 != (int *)(v12 + 1) ) { v13 = (int *)v11[1]; if ( v13 ) { while ( *v13 ) v13 = (int *)*v13; } else { for ( i = v11; ; i = (int *)i[2] ) { v13 = (int *)i[2]; if ( i == (int *)*v13 ) break; } } v15 = v12[1]; if ( *v12 == v11 ) *v12 = v13; v12[2] = (int *)((char *)v12[2] - 1); std::__tree_remove *>(v15, v11); std::string::~string((int)(v11 + 4)); operator delete(v11); } cocos2d::CCObject::release(v8); return std::string::~string((int)&v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source