// // FRequestProfilePage::deleteSelected from 0x1001b6f84 to 0x1001b70fc (376 bytes) // // 2 xrefs: // > FRequestProfilePage::FLAlert_Clicked @ 0x1001b7150 // > sub_1001B7160 @ 0x1001b7198 // // 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 FRequestProfilePage::deleteSelected(FRequestProfilePage *a1) { GameLevelManager *v2; // x0 std::string *p_m_key; // 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_uploadPopup; // x0 GameLevelManager *v15; // x19 GJAccountManager *v16; // x0 GJUserScore *v17; // x0 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v19; // [xsp+1Fh] [xbp-31h] v2 = GameLevelManager::sharedState(); p_m_key = &a1->m_key; if ( a1->m_key.m_data.m_short.shortStorage.__elems_[22] < 0 ) p_m_key = (std::string *)p_m_key->m_data.m_long.capacitym1; StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, (const char *)p_m_key); 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 ( BYTE1(v12[12].m_nTag) == 1 ) { sub_10024A2D0(v6, *arr); if ( LOBYTE(v12[12].m_nTag) == 1 ) { LOBYTE(v12[12].m_nTag) = 0; ++v9; } } ++arr; } while ( (unsigned __int64)arr <= v11 ); } else { v9 = 0; } if ( (unsigned int)sub_10024A36C(v6) ) { GameLevelManager::sharedState()->m_friendRequestDelegate = &a1->FriendRequestDelegate; GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; v13 = GameLevelManager::sharedState(); if ( GameLevelManager::deleteFriendRequests(v13, 0, v6, 0) ) { sub_100009900(__p, "Deleting Requests..."); m_uploadPopup = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, __p); a1->m_uploadPopup = m_uploadPopup; if ( v19 < 0 ) { operator delete(__p[0]); m_uploadPopup = a1->m_uploadPopup; } ((void (__fastcall *)(UploadActionPopup *))m_uploadPopup->show)(m_uploadPopup); } if ( v9 >= 1 ) { v15 = GameLevelManager::sharedState(); v16 = GJAccountManager::sharedState(); v17 = GameLevelManager::userInfoForAccountID(v15, v16->m_accountID - v16->m_unkInt1); if ( v17 ) v17->m_friendReqCount = (v17->m_friendReqCount - v9) & ~((v17->m_friendReqCount - v9) >> 31); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source