// // GameManager::loadBackground from 0x10036c6e0 to 0x10036c782 (162 bytes) // // 2 xrefs: // > LevelSettingsLayer::selectArtClosed @ 0x1002593e5 // > GameManager::getBGTexture @ 0x10036cf20 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:29:00 +0000 // __int64 __fastcall GameManager::loadBackground(__int64 a1, int a2) { char v2; // al __int64 result; // rax unsigned int v4; // r14d int v5; // esi __int64 v7; // rdi __int64 CString; // r15 __int64 v9; // rax __int64 v10; // rdi __int64 v11; // r15 __int64 v12; // rax char v13; // [rsp-8h] [rbp-20h] v13 = v2; result = 59; if ( a2 < 59 ) result = (unsigned int)a2; v4 = 1; if ( (int)result >= 2 ) v4 = result; v5 = *(_DWORD *)(a1 + 980); if ( v4 != v5 ) { if ( v5 ) { v7 = sub_10088E820("game_bg_%02d_001.png", v13); CString = cocos2d::CCString::getCString(v7); v9 = cocos2d::CCTextureCache::sharedTextureCache(v7); cocos2d::CCTextureCache::removeTextureForKey(v9, CString); } v10 = sub_10088E820("game_bg_%02d_001.png", v13); v11 = cocos2d::CCString::getCString(v10); AppDelegate::get(v10, v4); v12 = cocos2d::CCTextureCache::sharedTextureCache(v10); result = cocos2d::CCTextureCache::addImage(v12, v11, 0); *(_DWORD *)(a1 + 980) = v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source