// // GameManager::loadBackground from 0x100383300 to 0x1003833a2 (162 bytes) // // 2 xrefs: // > LevelSettingsLayer::selectArtClosed @ 0x10026f3e5 // > GameManager::getBGTexture @ 0x100383b40 // // 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) { char v2; // al int v3; // eax int v4; // r14d int m_loadedBgID; // esi cocos2d::CCString *v6; // rax const char *CString; // r15 cocos2d::CCTextureCache *v8; // rax cocos2d::CCString *v9; // rax const char *v10; // r15 cocos2d::CCTextureCache *v11; // rax char v12; // [rsp-8h] [rbp-20h] v12 = v2; v3 = 59; if ( a2 < 59 ) v3 = a2; v4 = 1; if ( v3 >= 2 ) v4 = v3; m_loadedBgID = a1->m_loadedBgID; if ( v4 != m_loadedBgID ) { if ( m_loadedBgID ) { v6 = (cocos2d::CCString *)sub_1007AB580("game_bg_%02d_001.png", v12); CString = cocos2d::CCString::getCString(v6); v8 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::removeTextureForKey(v8, CString); } v9 = (cocos2d::CCString *)sub_1007AB580("game_bg_%02d_001.png", v12); v10 = cocos2d::CCString::getCString(v9); AppDelegate::get(); v11 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v11, v10, 0); a1->m_loadedBgID = v4; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source