// // FRequestProfilePage::deleteSelected from 0x4c2228 to 0x4c2344 (284 bytes) // // 1 xrefs: // > FRequestProfilePage::FLAlert_Clicked @ 0x4c2364 // // 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 FRequestProfilePage::deleteSelected(FRequestProfilePage *a1) { GameLevelManager *v2; // r0 cocos2d::CCArray *StoredOnlineLevels; // r0 cocos2d::CCArray *v4; // r4 cocos2d::CCArray *v5; // r0 cocos2d::ccArray *data; // r2 cocos2d::CCArray *v7; // r9 cocos2d::CCObject **arr; // r7 int v9; // r6 cocos2d::CCObject **v10; // r4 int v11; // r10 int v12; // t1 GameLevelManager *v13; // r0 GameLevelManager *v14; // r4 GJAccountManager *v15; // r0 GJUserScore *v16; // r0 char v17[4]; // [sp+8h] [bp-Ch] BYREF v2 = GameLevelManager::sharedState(); StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, (const char *)a1->m_key.m_data.m_data); v4 = StoredOnlineLevels; if ( StoredOnlineLevels ) { v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(StoredOnlineLevels); data = v4->data; v7 = v5; if ( data->num ) { arr = data->arr; v9 = 0; v10 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v10 ) { v12 = (int)*arr++; v11 = v12; if ( !v12 ) break; if ( *(_BYTE *)(v11 + 453) ) { cocos2d::CCArray::addObject(v7, (cocos2d::CCObject *)v11); if ( *(_BYTE *)(v11 + 452) ) { *(_BYTE *)(v11 + 452) = 0; ++v9; } } } } else { v9 = 0; } if ( cocos2d::CCArray::count(v7) ) { GameLevelManager::sharedState()->m_friendRequestDelegate = &a1->FriendRequestDelegate; GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; v13 = GameLevelManager::sharedState(); if ( GameLevelManager::deleteFriendRequests(v13, 0, v7, 0) ) { sub_776584((int)v17, "Deleting Requests..."); a1->m_uploadPopup = (UploadActionPopup *)UploadActionPopup::create((char *)&a1->UploadPopupDelegate, v17); sub_774008(v17); a1->m_uploadPopup->show(a1->m_uploadPopup); } if ( v9 ) { v14 = GameLevelManager::sharedState(); v15 = GJAccountManager::sharedState(); v16 = GameLevelManager::userInfoForAccountID(v14, v15->m_accountID - v15->m_unkInt1); if ( v16 ) v16->m_friendReqCount = (v16->m_friendReqCount - v9) & ~((v16->m_friendReqCount - v9) >> 31); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source