// // LevelSettingsLayer::selectArtClosed from 0x100259380 to 0x1002595c4 (580 bytes) // // 2 xrefs: // > sub_1002595D0 @ 0x1002595dc // > @ 0x100af2478 // // 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:27:27 +0000 // void __fastcall LevelSettingsLayer::selectArtClosed(_QWORD *a1, _DWORD *a2, __int64 a3) { int v4; // eax __int64 v5; // rdi double v6; // xmm0_8 __int64 v7; // rax double Background; // xmm0_8 __int64 v9; // r15 __int64 v10; // r12 __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // rdx __int64 v15; // rdi __int64 v16; // rdi __int64 v17; // rax double v18; // xmm0_8 __int64 v19; // rax double Ground; // xmm0_8 __int64 v21; // r15 __int64 v22; // r12 __int64 v23; // rax __int64 v24; // rax __int64 v25; // rax __int64 v26; // rdi __int64 v27; // rdi double v28; // xmm0_8 __int64 v29; // rax double Middleground; // xmm0_8 __int64 v31; // r15 __int64 v32; // r12 __int64 v33; // rax __int64 CString; // rax __int64 v35; // rax __int64 v36; // rdi char v37; // [rsp+0h] [rbp-20h] v4 = a2[172]; switch ( v4 ) { case 2: v27 = a1[107]; if ( v27 ) GJBaseGameLayer::removeMiddleground(v27); *(_DWORD *)(a1[102] + 364LL) = a2[170]; *(_QWORD *)&v28 = GameManager::sharedState(v27, a2, a3).u64[0]; Middleground = GameManager::loadMiddleground(v29, (unsigned int)a2[170], v28); v31 = a1[99]; v32 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(Middleground); v33 = sub_10088E820("mgIcon_%02d_001.png", v37); CString = cocos2d::CCString::getCString(v33); v35 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v32, CString); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v31 + 1160LL))(v31, v35); v36 = a1[107]; if ( v36 ) GJBaseGameLayer::createMiddleground(v36, *(_DWORD *)(a1[102] + 364LL), Middleground); break; case 1: v16 = a1[107]; if ( v16 ) GJBaseGameLayer::removeGroundLayer(v16); v17 = a1[102]; *(_DWORD *)(v17 + 356) = a2[170]; *(_DWORD *)(v17 + 424) = a2[171]; *(_QWORD *)&v18 = GameManager::sharedState(v16, a2, a3).u64[0]; Ground = GameManager::loadGround(v19, (unsigned int)a2[170], v18); v21 = a1[98]; v22 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(Ground); v23 = sub_10088E820("gIcon_%02d_001.png", v37); v24 = cocos2d::CCString::getCString(v23); v25 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v22, v24); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 1160LL))(v21, v25); v26 = a1[107]; if ( v26 ) GJBaseGameLayer::createGroundLayer(v26, *(_DWORD *)(a1[102] + 356LL), *(_DWORD *)(a1[102] + 424LL)); break; case 0: v5 = a1[107]; if ( v5 ) GJBaseGameLayer::removeBackground(v5); *(_DWORD *)(a1[102] + 352LL) = a2[170]; *(_QWORD *)&v6 = GameManager::sharedState(v5, a2, a3).u64[0]; Background = GameManager::loadBackground(v7, (unsigned int)a2[170], v6); v9 = a1[97]; v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(Background); v11 = sub_10088E820("bgIcon_%02d_001.png", v37); v12 = cocos2d::CCString::getCString(v11); v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, v12); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 1160LL))(v9, v13); v15 = a1[107]; if ( v15 ) GJBaseGameLayer::createBackground(v15, *(unsigned int *)(a1[102] + 352LL), v14); break; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source