// // LevelSettingsLayer::selectArtClosed from 0x14045b070 to 0x14045b3c3 (851 bytes) // // 2 xrefs: // > @ 0x140798ac0 // > @ 0x140927cc8 // // 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 11:32:31 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall LevelSettingsLayer::selectArtClosed(__int64 a1, int *a2) { int v4; // eax __int64 v5; // rsi __int64 v6; // rcx __int64 v7; // rcx __int64 v8; // rsi __int64 v9; // rdi cocos2d::CCString *v10; // rax const char *v11; // rbx __int64 v12; // rdx __int64 v13; // rcx cocos2d::CCSpriteFrameCache *v14; // rax struct cocos2d::CCSpriteFrame *v15; // rax __int64 v16; // rcx __int64 v17; // rsi __int64 v18; // rcx __int64 v19; // rcx __int64 v20; // rsi __int64 v21; // rdi cocos2d::CCString *v22; // rax const char *CString; // rbx __int64 v24; // rdx __int64 v25; // rcx cocos2d::CCSpriteFrameCache *v26; // rax struct cocos2d::CCSpriteFrame *v27; // rax __int64 v28; // rcx __int64 v29; // rsi __int64 v30; // rcx __int64 v31; // rcx __int64 v32; // rsi __int64 v33; // rdi cocos2d::CCString *v34; // rax const char *v35; // rbx __int64 v36; // rdx __int64 v37; // rcx cocos2d::CCSpriteFrameCache *v38; // rax struct cocos2d::CCSpriteFrame *v39; // rax __int64 v40; // rcx void *v41; // [rsp+38h] [rbp+10h] void *v42; // [rsp+38h] [rbp+10h] void *v43; // [rsp+38h] [rbp+10h] v4 = a2[172]; if ( v4 ) { if ( v4 == 1 ) { v17 = *(_QWORD *)(a1 + 184); if ( v17 ) { v18 = *(_QWORD *)(v17 + 4336); if ( v18 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v18 + 512LL))(v18); *(_QWORD *)(v17 + 4336) = 0; (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v17 + 4344) + 512LL))(*(_QWORD *)(v17 + 4344)); *(_QWORD *)(v17 + 4344) = 0; } } *(_DWORD *)(*(_QWORD *)(a1 + 144) + 356LL) = a2[170]; *(_DWORD *)(*(_QWORD *)(a1 + 144) + 432LL) = a2[171]; v19 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v42 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v42); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v19 = qword_14090BFD0; } GameManager::loadGround(v19, a2[170]); v20 = **(_QWORD **)(a1 + 112); v21 = *(_QWORD *)(a1 + 112); v22 = cocos2d::CCString::createWithFormat("gIcon_%02d_001.png", a2[170]); CString = cocos2d::CCString::getCString(v22); v26 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v25, v24); v27 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v26, CString); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v20 + 1008))(v21, v27); v28 = *(_QWORD *)(a1 + 184); if ( v28 ) GJBaseGameLayer::createGroundLayer( v28, *(_DWORD *)(*(_QWORD *)(a1 + 144) + 356LL), *(_DWORD *)(*(_QWORD *)(a1 + 144) + 432LL)); } else if ( v4 == 2 ) { v29 = *(_QWORD *)(a1 + 184); if ( v29 ) { v30 = *(_QWORD *)(v29 + 4352); if ( v30 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v30 + 512LL))(v30); *(_QWORD *)(v29 + 4352) = 0; } } *(_DWORD *)(*(_QWORD *)(a1 + 144) + 364LL) = a2[170]; v31 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v43 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v43); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v31 = qword_14090BFD0; } GameManager::loadMiddleground(v31, a2[170]); v32 = **(_QWORD **)(a1 + 120); v33 = *(_QWORD *)(a1 + 120); v34 = cocos2d::CCString::createWithFormat("mgIcon_%02d_001.png", a2[170]); v35 = cocos2d::CCString::getCString(v34); v38 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v37, v36); v39 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v38, v35); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v32 + 1008))(v33, v39); v40 = *(_QWORD *)(a1 + 184); if ( v40 ) GJBaseGameLayer::createMiddleground(v40, *(_DWORD *)(*(_QWORD *)(a1 + 144) + 364LL)); } } else { v5 = *(_QWORD *)(a1 + 184); if ( v5 ) { v6 = *(_QWORD *)(v5 + 4320); if ( v6 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 512LL))(v6); *(_QWORD *)(v5 + 4320) = 0; } } *(_DWORD *)(*(_QWORD *)(a1 + 144) + 352LL) = a2[170]; v7 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v41 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v41); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v7 = qword_14090BFD0; } GameManager::loadBackground(v7, a2[170]); v8 = **(_QWORD **)(a1 + 104); v9 = *(_QWORD *)(a1 + 104); v10 = cocos2d::CCString::createWithFormat("bgIcon_%02d_001.png", a2[170]); v11 = cocos2d::CCString::getCString(v10); v14 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v13, v12); v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, v11); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v8 + 1008))(v9, v15); v16 = *(_QWORD *)(a1 + 184); if ( v16 ) GJBaseGameLayer::createBackground(v16, *(_DWORD *)(*(_QWORD *)(a1 + 144) + 352LL)); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source