// // GJRequestCell::onViewFriendRequest from 0x100257770 to 0x100257865 (245 bytes) // // 1 xrefs: // > GJRequestCell::loadFromScore @ 0x10024c602 // // 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::onViewFriendRequest(GJRequestCell *a1, cocos2d::CCObject *a2) { GJUserScore *m_score; // rax GameLevelManager *v3; // rax GJFriendRequest *v4; // rax GJFriendRequest *v5; // r14 __int64 v6; // rax GameLevelManager *v7; // rbx GJAccountManager *v8; // rax GJUserScore *v9; // rcx int m_friendReqCount; // esi FriendRequestPopup *v11; // rax m_score = a1->m_score; if ( m_score ) { if ( m_score->m_accountID > 0 ) { v3 = GameLevelManager::sharedState(); v4 = GameLevelManager::friendRequestFromAccountID(v3, a1->m_score->m_accountID); if ( v4 ) { if ( a1->m_score->m_newFriendRequest ) { v5 = v4; 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); v4 = v5; if ( v9 ) { m_friendReqCount = 1; if ( v9->m_friendReqCount >= 2 ) m_friendReqCount = v9->m_friendReqCount; v9->m_friendReqCount = m_friendReqCount - 1; } } v11 = FriendRequestPopup::create(v4); ((void (__fastcall *)(FriendRequestPopup *))v11->show)(v11); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source