// // LevelSettingsLayer::selectArtClosed from 0x10020d7f4 to 0x10020d9ec (504 bytes) // // 2 xrefs: // > sub_10020D9EC @ 0x10020d9f0 // > @ 0x1008f6520 // // This function is hookable on this platform (idp: arm, 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:01:01 +0000 // __int64 __fastcall LevelSettingsLayer::selectArtClosed(__int64 result, _DWORD *a2) { _QWORD *v3; // x19 int v4; // w8 __int64 v5; // x0 __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x21 __int64 v9; // x22 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x0 __int64 v13; // x0 __int64 v14; // x8 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x21 __int64 v18; // x22 __int64 v19; // x0 __int64 v20; // x0 __int64 v21; // x0 __int64 v22; // x0 __int64 v23; // x0 __int64 v24; // x0 __int64 v25; // x21 __int64 v26; // x22 __int64 v27; // x0 __int64 CString; // x0 __int64 v29; // x0 v3 = (_QWORD *)result; v4 = a2[172]; switch ( v4 ) { case 2: v22 = *(_QWORD *)(result + 856); if ( v22 ) v22 = GJBaseGameLayer::removeMiddleground(); *(_DWORD *)(v3[102] + 364LL) = a2[170]; v23 = GameManager::sharedState(v22); v24 = sub_1003B5394(v23, (unsigned int)a2[170]); v25 = v3[99]; v26 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v24); v27 = sub_1003065B0("mgIcon_%02d_001.png", a2[170]); CString = cocos2d::CCString::getCString(v27); v29 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v26, CString); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 1160LL))(v25, v29); result = v3[107]; if ( result ) return GJBaseGameLayer::createMiddleground(result); break; case 1: v13 = *(_QWORD *)(result + 856); if ( v13 ) v13 = GJBaseGameLayer::removeGroundLayer(); v14 = v3[102]; *(_DWORD *)(v14 + 356) = a2[170]; *(_DWORD *)(v14 + 424) = a2[171]; v15 = GameManager::sharedState(v13); v16 = sub_1003B56BC(v15, (unsigned int)a2[170]); v17 = v3[98]; v18 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v16); v19 = sub_1003065B0("gIcon_%02d_001.png", a2[170]); v20 = cocos2d::CCString::getCString(v19); v21 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v18, v20); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 1160LL))(v17, v21); result = v3[107]; if ( result ) return GJBaseGameLayer::createGroundLayer( result, *(unsigned int *)(v3[102] + 356LL), *(unsigned int *)(v3[102] + 424LL)); break; case 0: v5 = *(_QWORD *)(result + 856); if ( v5 ) v5 = GJBaseGameLayer::removeBackground(); *(_DWORD *)(v3[102] + 352LL) = a2[170]; v6 = GameManager::sharedState(v5); v7 = sub_1003B51A8(v6, (unsigned int)a2[170]); v8 = v3[97]; v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v7); v10 = sub_1003065B0("bgIcon_%02d_001.png", a2[170]); v11 = cocos2d::CCString::getCString(v10); v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v11); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 1160LL))(v8, v12); result = v3[107]; if ( result ) return GJBaseGameLayer::createBackground(result, *(unsigned int *)(v3[102] + 352LL)); break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source