// // LevelSettingsLayer::selectArtClosed from 0x140321e30 to 0x14032217a (842 bytes) // // 2 xrefs: // > @ 0x14058f6d0 // > @ 0x1406d4cc4 // // 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 // // Hidden C++ exception states: #wind=3 void LevelSettingsLayer::selectArtClosed(LevelSettingsLayer *a1, SelectArtLayer *a2) { SelectArtType m_type; // eax cocos2d::CCCamera *v5; // rbp __int64 v6; // rcx GameManager *v7; // rcx __int64 v8; // rdi cocos2d::CCString *v9; // rax const char *v10; // rbx __int64 v11; // rcx cocos2d::CCSpriteFrameCache *v12; // rax struct cocos2d::CCSpriteFrame *v13; // rax cocos2d::CCCamera *v14; // rcx cocos2d::CCCamera *m_pCamera; // rbp __int64 v16; // rcx GameManager *v17; // rcx __int64 v18; // rdi cocos2d::CCString *v19; // rax const char *CString; // rbx __int64 v21; // rcx cocos2d::CCSpriteFrameCache *v22; // rax struct cocos2d::CCSpriteFrame *v23; // rax cocos2d::CCCamera *v24; // rcx cocos2d::CCCamera *v25; // rbp __int64 v26; // rcx GameManager *v27; // rcx __int64 v28; // rdi cocos2d::CCString *v29; // rax const char *v30; // rbx __int64 v31; // rcx cocos2d::CCSpriteFrameCache *v32; // rax struct cocos2d::CCSpriteFrame *v33; // rax cocos2d::CCCamera *v34; // rcx void *v35; // [rsp+38h] [rbp+10h] void *v36; // [rsp+38h] [rbp+10h] void *v37; // [rsp+38h] [rbp+10h] m_type = a2->m_type; if ( m_type ) { if ( m_type == Ground ) { m_pCamera = a1->m_pCamera; if ( m_pCamera ) { v16 = *(_QWORD *)&m_pCamera[25].m_lookupMatrix.mat[4]; if ( v16 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 496LL))(v16); *(_QWORD *)&m_pCamera[25].m_lookupMatrix.mat[4] = 0; (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&m_pCamera[25].m_lookupMatrix.mat[6] + 496LL))(*(_QWORD *)&m_pCamera[25].m_lookupMatrix.mat[6]); *(_QWORD *)&m_pCamera[25].m_lookupMatrix.mat[6] = 0; } } *(_DWORD *)(*(_QWORD *)&a1->m_sTransform.d + 356LL) = a2->m_art; *(_DWORD *)(*(_QWORD *)&a1->m_sTransform.d + 432LL) = a2->m_line; v17 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v36 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v36); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v17 = (GameManager *)qword_1406C2ED8; } GameManager::loadGround(v17, a2->m_art); v18 = **(_QWORD **)&a1->m_sAdditionalTransform.b; v19 = cocos2d::CCString::createWithFormat("gIcon_%02d_001.png", a2->m_art); CString = cocos2d::CCString::getCString(v19); v22 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v21); v23 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v22, CString); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(v18 + 992))( *(_QWORD *)&a1->m_sAdditionalTransform.b, v23); v24 = a1->m_pCamera; if ( v24 ) GJBaseGameLayer::createGroundLayer( (GJBaseGameLayer *)v24, *(_DWORD *)(*(_QWORD *)&a1->m_sTransform.d + 356LL), *(_DWORD *)(*(_QWORD *)&a1->m_sTransform.d + 432LL)); } else if ( m_type == Middleground ) { v25 = a1->m_pCamera; if ( v25 ) { v26 = *(_QWORD *)&v25[25].m_lookupMatrix.mat[8]; if ( v26 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v26 + 496LL))(v26); *(_QWORD *)&v25[25].m_lookupMatrix.mat[8] = 0; } } *(_DWORD *)(*(_QWORD *)&a1->m_sTransform.d + 364LL) = a2->m_art; v27 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v37 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v37); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v27 = (GameManager *)qword_1406C2ED8; } GameManager::loadMiddleground(v27, a2->m_art); v28 = **(_QWORD **)&a1->m_sAdditionalTransform.d; v29 = cocos2d::CCString::createWithFormat("mgIcon_%02d_001.png", a2->m_art); v30 = cocos2d::CCString::getCString(v29); v32 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v31); v33 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v32, v30); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(v28 + 992))( *(_QWORD *)&a1->m_sAdditionalTransform.d, v33); v34 = a1->m_pCamera; if ( v34 ) GJBaseGameLayer::createMiddleground((GJBaseGameLayer *)v34, *(_DWORD *)(*(_QWORD *)&a1->m_sTransform.d + 364LL)); } } else { v5 = a1->m_pCamera; if ( v5 ) { v6 = *(_QWORD *)v5[25].m_lookupMatrix.mat; if ( v6 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 496LL))(v6); *(_QWORD *)v5[25].m_lookupMatrix.mat = 0; } } *(_DWORD *)(*(_QWORD *)&a1->m_sTransform.d + 352LL) = a2->m_art; v7 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v35 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v35); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v7 = (GameManager *)qword_1406C2ED8; } GameManager::loadBackground(v7, a2->m_art); v8 = **(_QWORD **)&a1->m_obContentSize.height; v9 = cocos2d::CCString::createWithFormat("bgIcon_%02d_001.png", a2->m_art); v10 = cocos2d::CCString::getCString(v9); v12 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v11); v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, v10); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(v8 + 992))( *(_QWORD *)&a1->m_obContentSize.height, v13); v14 = a1->m_pCamera; if ( v14 ) GJBaseGameLayer::createBackground((GJBaseGameLayer *)v14, *(_DWORD *)(*(_QWORD *)&a1->m_sTransform.d + 352LL)); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source