// // GameManager::loadBackgroundAsync from 0x414740 to 0x414798 (88 bytes) // // 1 xrefs: // > GJBaseGameLayer::swapBackground @ 0x58c7c8 // // 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::loadBackgroundAsync(int this, const char *a2) { int v2; // r5 const char *v3; // r4 int v4; // r6 int v5; // r7 cocos2d::CCString *v6; // r0 char *CString; // r0 v2 = this; if ( (int)a2 <= 0 ) { v3 = (_BYTE *)(&dword_0 + 1); } else { if ( (int)a2 >= 59 ) a2 = (_BYTE *)(&dword_38 + 3); v3 = a2; } v4 = *(unsigned __int8 *)(this + 788); if ( !*(_BYTE *)(this + 788) && v3 != *(const char **)(this + 768) ) { *(_BYTE *)(this + 788) = 1; v5 = cocos2d::CCTextureCache::sharedTextureCache((cocos2d::CCTextureCache *)this); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"game_bg_%02d_001.png", v3); CString = (char *)cocos2d::CCString::getCString(v6); return cocos2d::CCTextureCache::addImageAsync( v5, CString, v2, (int)GameManager::finishedLoadingBGAsync, v4, (int)v3, v4); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source