// // GJRequestCell::FLAlert_Clicked from 0x100257b10 to 0x100257ca0 (400 bytes) // // 2 xrefs: // > sub_100257CC0 @ 0x100257ccc // > @ 0x1008e8698 // // 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 GJRequestCell::FLAlert_Clicked(GJRequestCell *a1, FLAlertLayer *a2, bool a3) { GameLevelManager *v3; // rax GJFriendRequest *v4; // rax GJFriendRequest *v5; // r14 __int64 v6; // rax GameLevelManager *v7; // r15 GJAccountManager *v8; // rax GJUserScore *v9; // rax int m_friendReqCount; // edx GameLevelManager *v11; // rax UploadActionPopup *m_popup; // rax _QWORD v13[2]; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] if ( a3 && ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 1 ) { if ( a1->m_score ) { v3 = GameLevelManager::sharedState(); v4 = GameLevelManager::friendRequestFromAccountID(v3, a1->m_score->m_accountID); if ( v4 ) { v5 = v4; if ( a1->m_score->m_newFriendRequest ) { v6 = ((__int64 (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->getChildByTag)( a1->m_mainLayer, 100); if ( v6 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 328LL))(v6, 0); a1->m_score->m_newFriendRequest = 0; v7 = GameLevelManager::sharedState(); v8 = GJAccountManager::sharedState(); v9 = GameLevelManager::userInfoForAccountID(v7, v8->m_accountID - v8->m_unkInt1); if ( v9 ) { m_friendReqCount = 1; if ( v9->m_friendReqCount >= 2 ) m_friendReqCount = v9->m_friendReqCount; v9->m_friendReqCount = m_friendReqCount - 1; } } GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; v11 = GameLevelManager::sharedState(); if ( GameLevelManager::deleteFriendRequests(v11, v5->m_accountID, nullptr, 0) ) { __p = operator new(0x20u); v13[0] = 33; v13[1] = 26; strcpy((char *)__p, "Removing Friend Request..."); m_popup = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, v13); a1->m_popup = m_popup; if ( (v13[0] & 1) != 0 ) { operator delete(__p); m_popup = a1->m_popup; } ((void (__fastcall *)(UploadActionPopup *))m_popup->show)(m_popup); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source