// // LevelBrowserLayer::onDeleteSelected from 0x100415f58 to 0x1004160f0 (408 bytes) // // 1 xrefs: // > LevelBrowserLayer::init @ 0x100414e8c // // 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::onDeleteSelected(LevelBrowserLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *m_levels; // x0 cocos2d::CCArray *v4; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x10 int v7; // w8 unsigned __int64 arr; // x9 unsigned __int64 v9; // x10 cocos2d::CCString *v10; // x0 char *CString; // x0 char *v12; // x1 FLAlertLayer *v13; // x19 __int64 v14; // x19 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v16; // [xsp+1Fh] [xbp-41h] void *v17[2]; // [xsp+20h] [xbp-40h] BYREF char v18; // [xsp+37h] [xbp-29h] void *v19[2]; // [xsp+38h] [xbp-28h] BYREF char v20; // [xsp+4Fh] [xbp-11h] m_levels = a1->m_levels; if ( m_levels && (unsigned int)sub_10024A36C((__int64)m_levels) ) { v4 = a1->m_levels; if ( !v4 ) goto LABEL_16; data = v4->data; num = data->num; if ( !(_DWORD)num ) goto LABEL_16; v7 = 0; arr = (unsigned __int64)data->arr; v9 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; v7 += *(unsigned __int8 *)(*(_QWORD *)arr + 655LL); arr += 8LL; } while ( arr <= v9 ); if ( v7 ) { v10 = (cocos2d::CCString *)sub_100268F4C( "Are you sure you want to delete the %i selected levels?", v7); CString = (char *)cocos2d::CCString::getCString(v10); sub_100009900(v17, CString); if ( v18 >= 0 ) v12 = (char *)v17; else v12 = (char *)v17[0]; sub_100009900(__p, v12); v13 = FLAlertLayer::create( (__int64)&a1->FLAlertLayerProtocol, (__int64)"Delete", (__int64)__p, (__int64)"Back", (__int64)"Delete", 0, 380.0); if ( v16 < 0 ) operator delete(__p[0]); ButtonSprite::updateBGImage(v13->m_button2, "GJ_button_06.png"); ((void (__fastcall *)(FLAlertLayer *, __int64))v13->setTag)(v13, 5); ((void (__fastcall *)(FLAlertLayer *))v13->show)(v13); if ( v18 < 0 ) operator delete(v17[0]); } else { LABEL_16: sub_100009900(v19, "No levels selected."); v14 = sub_1002ABCCC(0, (__int64)"Nothing here...", (__int64)v19, (__int64)"OK", 0); if ( v20 < 0 ) operator delete(v19[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 1288LL))(v14); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source