// // MessagesProfilePage::deleteSelected from 0x1001cce3c to 0x1001ccfcc (400 bytes) // // 2 xrefs: // > MessagesProfilePage::FLAlert_Clicked @ 0x1001cd020 // > sub_1001CD030 @ 0x1001cd068 // // 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 MessagesProfilePage::deleteSelected(MessagesProfilePage *a1) { GameLevelManager *v2; // x0 std::string *p_m_messageKey; // x1 cocos2d::CCArray *StoredOnlineLevels; // x0 cocos2d::CCArray *v5; // x21 cocos2d::CCArray *v6; // x20 cocos2d::ccArray *data; // x9 __int64 num; // x8 int v9; // w22 cocos2d::CCObject **arr; // x23 unsigned __int64 v11; // x24 cocos2d::CCObject *v12; // x21 GameLevelManager *v13; // x0 UploadActionPopup *m_actionPopup; // x0 GameLevelManager *v15; // x20 GJAccountManager *v16; // x0 GJUserScore *v17; // x0 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v19; // [xsp+1Fh] [xbp-41h] v2 = GameLevelManager::sharedState(); p_m_messageKey = &a1->m_messageKey; if ( a1->m_messageKey.m_data.m_short.shortStorage.__elems_[22] < 0 ) p_m_messageKey = (std::string *)p_m_messageKey->m_data.m_long.capacitym1; StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, (const char *)p_m_messageKey); if ( StoredOnlineLevels ) { v5 = StoredOnlineLevels; v6 = (cocos2d::CCArray *)sub_10024A15C(StoredOnlineLevels); data = v5->data; num = data->num; if ( (_DWORD)num ) { v9 = 0; arr = data->arr; v11 = (unsigned __int64)&arr[num - 1]; do { v12 = *arr; if ( !*arr ) break; if ( BYTE2(v12[7].m_uIndexInArray) == 1 ) { sub_10024A2D0(v6, *arr); if ( (v12[7].m_uIndexInArray & 1) == 0 ) { LOBYTE(v12[7].m_uIndexInArray) = 1; ++v9; } } ++arr; } while ( (unsigned __int64)arr <= v11 ); } else { v9 = 0; } if ( (unsigned int)sub_10024A36C(v6) ) { GameLevelManager::sharedState()->m_messageListDelegate = &a1->MessageListDelegate; GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; v13 = GameLevelManager::sharedState(); if ( GameLevelManager::deleteUserMessages(v13, nullptr, v6, a1->m_sentMessages) ) { sub_100009900(__p, "Deleting Messages..."); m_actionPopup = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, __p); a1->m_actionPopup = m_actionPopup; if ( v19 < 0 ) { operator delete(__p[0]); m_actionPopup = a1->m_actionPopup; } ((void (__fastcall *)(UploadActionPopup *))m_actionPopup->show)(m_actionPopup); } if ( v9 >= 1 ) { v15 = GameLevelManager::sharedState(); v16 = GJAccountManager::sharedState(); v17 = GameLevelManager::userInfoForAccountID(v15, v16->m_accountID - v16->m_unkInt1); if ( v17 ) v17->m_newMsgCount = (v17->m_newMsgCount - v9) & ~((v17->m_newMsgCount - v9) >> 31); } a1->m_toggledAll = 0; CCMenuItemToggler::toggle(a1->m_toggleAllToggler, 0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source