// // GameManager::loadGroundAsync from 0x5ec37c to 0x5ec484 (264 bytes) // // 2 xrefs: // > GJBaseGameLayer::swapGround @ 0x857258 // > @ 0xa9290 // // 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 GameManager::loadGroundAsync(GameManager *a1, int a2) { unsigned int v2; // w19 bool HasSecondaryColor; // w0 _BOOL4 v5; // w21 cocos2d::CCTextureCache *v6; // x22 cocos2d::CCString *v7; // x0 const char *CString; // x0 cocos2d::CCTextureCache *v9; // x21 cocos2d::CCString *v10; // x0 const char *v11; // x0 cocos2d::SEL_MenuHandler v12; // 0:x3.16 cocos2d::SEL_MenuHandler v13; // 0:x3.16 if ( a2 <= 0 ) { v2 = 1; } else if ( a2 > 22 ) { v2 = 22; } else { v2 = a2; } if ( !a1->m_loadingG && v2 != a1->m_loadedGroundID ) { a1->m_loadingG = 1; HasSecondaryColor = GameManager::groundHasSecondaryColor(a1, v2); v5 = HasSecondaryColor; a1->m_finishedLoadingG1 = 0; a1->m_finishedLoadingG2 = !HasSecondaryColor; v6 = cocos2d::CCTextureCache::sharedTextureCache(); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"groundSquare_%02d_001.png", (const char *)v2); CString = cocos2d::CCString::getCString(v7); v12.adj = 0; v12.ptr = (void (__cdecl *)(cocos2d::CCObject *))GameManager::finishedLoadingGAsync1; cocos2d::CCTextureCache::addImageAsync(v6, CString, a1, v12, v2, kCCTexture2DPixelFormat_RGBA8888); if ( v5 ) { v9 = cocos2d::CCTextureCache::sharedTextureCache(); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"groundSquare_%02d_2_001.png", (const char *)v2); v11 = cocos2d::CCString::getCString(v10); v13.adj = 0; v13.ptr = (void (__cdecl *)(cocos2d::CCObject *))GameManager::finishedLoadingGAsync2; cocos2d::CCTextureCache::addImageAsync(v9, v11, a1, v13, v2, kCCTexture2DPixelFormat_RGBA8888); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source