// // LevelBrowserLayer::deleteSelected from 0x1004193b8 to 0x1004194a4 (236 bytes) // // 1 xrefs: // > LevelBrowserLayer::FLAlert_Clicked @ 0x100419580 // // 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 // void __fastcall LevelBrowserLayer::deleteSelected(LevelBrowserLayer *a1) { cocos2d::CCObject *v2; // x20 cocos2d::CCArray *m_levels; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x8 unsigned __int64 arr; // x21 unsigned __int64 v7; // x22 cocos2d::CCObject_vtbl *v8; // x9 __int64 copyWithZone_low; // x8 GJGameLevel **v10; // x21 unsigned __int64 v11; // x22 GJGameLevel *v12; // x20 GameLevelManager *v13; // x0 if ( a1->m_levels ) { v2 = sub_10024A15C(); m_levels = a1->m_levels; if ( m_levels ) { data = m_levels->data; num = data->num; if ( (_DWORD)num ) { arr = (unsigned __int64)data->arr; v7 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; if ( *(_BYTE *)(*(_QWORD *)arr + 655LL) == 1 ) sub_10024A2D0((__int64)v2); arr += 8LL; } while ( arr <= v7 ); } } if ( (unsigned int)sub_10024A36C((__int64)v2) ) { if ( v2 ) { v8 = v2[1].__vftable; copyWithZone_low = LODWORD(v8->copyWithZone); if ( (_DWORD)copyWithZone_low ) { v10 = (GJGameLevel **)v8->~CCObject_0; v11 = (unsigned __int64)&v10[copyWithZone_low - 1]; do { v12 = *v10; if ( !*v10 ) break; v13 = GameLevelManager::sharedState(); GameLevelManager::deleteLevel(v13, v12); ++v10; } while ( (unsigned __int64)v10 <= v11 ); } } a1->m_allSelected = 0; CCMenuItemToggler::toggle(a1->m_allObjectsToggler, 0); LevelBrowserLayer::loadPage(a1, a1->m_searchObject); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source