// // GameManager::loadBackground from 0x100318424 to 0x1003184c8 (164 bytes) // // 2 xrefs: // > LevelSettingsLayer::selectArtClosed @ 0x10017c170 // > GameManager::getBGTexture @ 0x100318cb0 // // 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::loadBackground(GameManager *a1, int a2) { int v2; // w8 int v3; // w21 int m_loadedBgID; // w8 cocos2d::CCString *v6; // x0 const char *CString; // x20 cocos2d::CCTextureCache *v8; // x0 cocos2d::CCString *v9; // x0 const char *v10; // x20 cocos2d::CCTextureCache *v11; // x0 if ( a2 >= 59 ) v2 = 59; else v2 = a2; if ( v2 <= 1 ) v3 = 1; else v3 = v2; m_loadedBgID = a1->m_loadedBgID; if ( v3 != m_loadedBgID ) { if ( m_loadedBgID ) { v6 = (cocos2d::CCString *)sub_100268F4C("game_bg_%02d_001.png", a1->m_loadedBgID); CString = cocos2d::CCString::getCString(v6); v8 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::removeTextureForKey(v8, CString); } v9 = (cocos2d::CCString *)sub_100268F4C("game_bg_%02d_001.png", v3); v10 = cocos2d::CCString::getCString(v9); AppDelegate::get(); v11 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v11, v10, 0); a1->m_loadedBgID = v3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source