// // GameManager::loadGroundAsync from 0x100383900 to 0x100383a00 (256 bytes) // // 1 xrefs: // > GJBaseGameLayer::swapGround @ 0x1001148eb // // 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::loadGroundAsync(GameManager *a1, int a2) { int v2; // eax int v3; // r14d cocos2d::CCTextureCache *v4; // r15 cocos2d::CCString *v5; // rax const char *CString; // rax cocos2d::CCTextureCache *v7; // r15 cocos2d::CCString *v8; // rax const char *v9; // rax char v10; // [rsp+0h] [rbp-30h] char v11; // [rsp+0h] [rbp-30h] v2 = 22; if ( a2 < 22 ) v2 = a2; v3 = 1; if ( v2 >= 2 ) v3 = v2; if ( !a1->m_loadingG && v3 != a1->m_loadedGroundID ) { a1->m_loadingG = 1; a1->m_finishedLoadingG1 = 0; a1->m_finishedLoadingG2 = (v3 & 0x7FFFFFFC) != 8; v4 = cocos2d::CCTextureCache::sharedTextureCache(); v5 = (cocos2d::CCString *)sub_1007AB580("groundSquare_%02d_001.png", v10); CString = cocos2d::CCString::getCString(v5); cocos2d::CCTextureCache::addImageAsync( v4, CString, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)GameManager::finishedLoadingGAsync1, v3, kCCTexture2DPixelFormat_RGBA8888); if ( (v3 & 0x7FFFFFFC) == 8 ) { v7 = cocos2d::CCTextureCache::sharedTextureCache(); v8 = (cocos2d::CCString *)sub_1007AB580("groundSquare_%02d_2_001.png", v11); v9 = cocos2d::CCString::getCString(v8); cocos2d::CCTextureCache::addImageAsync( v7, v9, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)GameManager::finishedLoadingGAsync2, v3, kCCTexture2DPixelFormat_RGBA8888); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source