// // GameManager::unloadBackground from 0x414688 to 0x4146d6 (78 bytes) // // 1 xrefs: // > SupportLayer::onLowDetail @ 0x539bae // // 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 11:47:39 +0000 // int __fastcall GameManager::unloadBackground(int this) { int v1; // r4 const char *v2; // r1 cocos2d::CCString *v3; // r0 cocos2d::CCTextureCache *CString; // r6 cocos2d::CCTextureCache *v5; // r0 const char *v6; // r4 cocos2d::CCString *v7; // r0 cocos2d::CCFileUtils *v8; // r6 int v9; // r0 v1 = this; v2 = *(const char **)(this + 768); if ( v2 ) { v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"game_bg_%02d_001.png", v2); CString = (cocos2d::CCTextureCache *)cocos2d::CCString::getCString(v3); v5 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(CString); cocos2d::CCTextureCache::removeTextureForKey(v5, (const char *)CString); *(_DWORD *)(v1 + 768) = 0; v6 = (char *)&dword_0 + 1; do { v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"game_bg_%02d_001.png", v6++); v8 = (cocos2d::CCFileUtils *)cocos2d::CCString::getCString(v7); v9 = cocos2d::CCFileUtils::sharedFileUtils(v8); this = (*(int (__fastcall **)(int, cocos2d::CCFileUtils *))(*(_DWORD *)v9 + 28))(v9, v8); } while ( v6 != (const char *)off_3C ); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source