// // MessagesProfilePage::onDeleteSelected from 0x1403373a0 to 0x14033768d (749 bytes) // // 2 xrefs: // > MessagesProfilePage::init @ 0x140336c10 // > @ 0x1406d5270 // // 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 MessagesProfilePage::onDeleteSelected(MessagesProfilePage *a1, cocos2d::CCObject *a2) { std::string *p_m_messageKey; // rbx GameLevelManager *v4; // rcx cocos2d::CCArray *StoredOnlineLevels; // rax cocos2d::ccArray *data; // rcx __int64 num; // rax cocos2d::CCObject **arr; // rcx cocos2d::CCObject **v9; // rdx __int64 v10; // rax FLAlertLayer *v11; // rbx FLAlertLayerProtocol *v12; // r14 FLAlertLayer *v13; // rbx __int64 v14; // rax __int128 v15; // [rsp+50h] [rbp+7h] BYREF __int64 v16; // [rsp+60h] [rbp+17h] __int64 v17; // [rsp+68h] [rbp+1Fh] _BYTE v18[32]; // [rsp+70h] [rbp+27h] BYREF void *v19; // [rsp+B0h] [rbp+67h] FLAlertLayer *v20; // [rsp+C0h] [rbp+77h] p_m_messageKey = &a1->m_messageKey; if ( a1->m_messageKey.m_data.m_capacity > 0xF ) p_m_messageKey = (std::string *)p_m_messageKey->m_data.m_bigStorage; v4 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v19 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v4 = (GameLevelManager *)qword_1406C2EC0; } StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v4, p_m_messageKey->m_data.m_smallStorage._Elems); if ( StoredOnlineLevels ) { data = StoredOnlineLevels->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v9 = &arr[num - 1]; if ( arr <= v9 ) { while ( *arr ) { if ( BYTE2((*arr)[8].m_nTag) ) { v12 = &a1->FLAlertLayerProtocol; if ( !a1 ) v12 = nullptr; v15 = 0; *(_QWORD *)&v15 = sub_14003AA10(0x50u); v16 = 70; v17 = 79; strcpy((char *)v15, "Are you sure you want to delete the selected messages?"); v20 = (FLAlertLayer *)operator new(0x278u); v13 = FLAlertLayer::FLAlertLayer(v20); if ( v13 ) { v14 = sub_14003BDB0((__int64)v18, (__int64)&v15); if ( FLAlertLayer::init((__int64)v13, (__int64)v12, "Delete", v14, "Back", "Delete", 380.0, 0, 0, 1.0) ) { cocos2d::CCObject::autorelease(v13); } else { ((void (__fastcall *)(FLAlertLayer *, __int64))v13->~FLAlertLayer)(v13, 1); v13 = nullptr; } } sub_14003A830((__int64)&v15); ButtonSprite::updateBGImage(v13->m_button2, "GJ_button_06.png"); v13->setTag(v13, 1); v13->show(v13); return; } if ( ++arr > v9 ) break; } } } } v15 = 0; v16 = 0; v17 = 15; *(_QWORD *)&v15 = sub_14003AA10(0x20u); v16 = 21; v17 = 31; strcpy((char *)v15, "No messages selected."); v10 = sub_14003BDB0((__int64)v18, (__int64)&v15); v11 = FLAlertLayer::create(0, (int)"Nothing here...", v10, (__int64)"OK", 0, 1132068864, 0, 0, 1065353216); sub_14003A830((__int64)&v15); v11->show(v11); }
GD Web Decomp Icon

GD Web Decomp

Raw Source