// // GameManager::loadMiddlegroundAsync from 0x1003835d0 to 0x1003836ab (219 bytes) // // 1 xrefs: // > GJBaseGameLayer::swapMiddleground @ 0x100114af1 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GameManager::loadMiddlegroundAsync(GameManager *a1, int a2) { char v2; // al int v3; // eax int v4; // ebx cocos2d::CCTextureCache *v5; // r15 cocos2d::CCString *v6; // rax const char *CString; // rax cocos2d::CCTextureCache *v8; // r15 cocos2d::CCString *v9; // rax const char *v10; // rax char v11; // [rsp+0h] [rbp-20h] char v12; // [rsp+0h] [rbp-20h] v11 = v2; v3 = 3; if ( a2 < 3 ) v3 = a2; v4 = 1; if ( v3 >= 2 ) v4 = v3; if ( !a1->m_loadingG1 && v4 != a1->m_loadedMG ) { a1->m_loadingG1 = 1; *(_WORD *)&a1->m_finishedLoadingMG1 = 0; v5 = cocos2d::CCTextureCache::sharedTextureCache(); v6 = (cocos2d::CCString *)sub_1007AB580("fg_%02d_001.png", v11); CString = cocos2d::CCString::getCString(v6); cocos2d::CCTextureCache::addImageAsync( v5, CString, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)GameManager::finishedLoadingMGAsync1, v4, kCCTexture2DPixelFormat_RGBA8888); v8 = cocos2d::CCTextureCache::sharedTextureCache(); v9 = (cocos2d::CCString *)sub_1007AB580("fg_%02d_2_001.png", v12); v10 = cocos2d::CCString::getCString(v9); cocos2d::CCTextureCache::addImageAsync( v8, v10, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)GameManager::finishedLoadingMGAsync2, v4, kCCTexture2DPixelFormat_RGBA8888); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source