// // cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile from 0xd8c2b4 to 0xd8c440 (396 bytes) // // 13 xrefs: // > GauntletSelectLayer::onExit @ 0xa77810 // > GJShopLayer::onExit @ 0xa804a0 // > SecretLayer3::onExit @ 0xa8a518 // > SecretLayer2::onExit @ 0xa8a83c // > SecretLayer4::onExit @ 0xa97adc // > WorldSelectLayer::onExit @ 0xaa5b40 // > LevelAreaLayer::onExit @ 0xb5d5f8 // > LevelAreaInnerLayer::onExit @ 0xb5d648 // > SecretRewardsLayer::onExit @ 0xba1e44 // > GJPathsLayer::onExit @ 0xba3d40 // > SecretLayer5::onExit @ 0xbc35b4 // > SelectFontLayer2::unloadPreviewSheet @ 0xd03714 // > @ 0x68e60 // // This function is hookable on this platform (idp: arm, 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 13:08:16 +0000 // __int64 __fastcall cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(cocos2d::CCSpriteFrameCache *this, char *a2) { __int64 v4; // x0 cocos2d::CCDictionary *v5; // x0 cocos2d::CCDictionary *v6; // x21 size_t v7; // x0 __int64 v8; // x24 __int64 *v9; // x19 __int64 **v10; // x2 __int64 *v11; // x1 __int64 *v12; // x0 __int64 *v13; // x0 cocos2d::CCDictionary *v15[2]; // [xsp+48h] [xbp+48h] BYREF cocos2d::CCDictionary *v16; // [xsp+58h] [xbp+58h] __int64 v17[2]; // [xsp+60h] [xbp+60h] BYREF void *v18; // [xsp+70h] [xbp+70h] v4 = cocos2d::CCFileUtils::sharedFileUtils(_stack_chk_guard); (*(void (__fastcall **)(cocos2d::CCDictionary **__return_ptr, __int64, char *, _QWORD))(*(_QWORD *)v4 + 48LL))( v15, v4, a2, 0); v5 = (cocos2d::CCDictionary *)((char *)v15 + 1); if ( ((__int64)v15[0] & 1) != 0 ) v5 = v16; v6 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::createWithContentsOfFileThreadSafe( v5, (const char *)LOBYTE(v15[0])); cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary(this, v6); v17[0] = 0; v17[1] = 0; v18 = nullptr; v7 = strlen(a2); v8 = *((_QWORD *)this + 9); std::string::__init(v17, a2, v7); v9 = std::__tree::find(v8, (__int64)v17); if ( (v17[0] & 1) != 0 ) operator delete(v18); v10 = *((__int64 ***)this + 9); if ( v9 != (__int64 *)(v10 + 1) ) { v11 = (__int64 *)v9[1]; v12 = v9; if ( v11 ) { while ( *v11 ) v11 = (__int64 *)*v11; if ( v9 != *v10 ) goto LABEL_11; } else { while ( 1 ) { v11 = (__int64 *)v12[2]; if ( v12 == (__int64 *)*v11 ) break; v12 = (__int64 *)v12[2]; } if ( v9 != *v10 ) goto LABEL_11; } *v10 = v11; LABEL_11: v13 = v10[1]; v10[2] = (__int64 *)((char *)v10[2] - 1); std::__tree_remove *>(v13, v9); std::string::~string((__int64)(v9 + 4)); operator delete(v9); } cocos2d::CCObject::release(v6); if ( ((__int64)v15[0] & 1) != 0 ) operator delete(v16); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source