// // GameLevelManager::onBlockUserCompleted from 0x3c2ccc to 0x3c2db4 (232 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x3d7366 // // 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 GameLevelManager::onBlockUserCompleted(GameLevelManager *a1, int a2, char **a3, int a4) { const char *v4; // r7 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r10 int SplitIntFromKey; // r7 _BOOL4 v9; // r8 UploadActionDelegate *m_uploadActionDelegate; // r0 GJUserScore *v11; // r0 GJUserScore *v12; // r1 UserInfoDelegate *m_userInfoDelegate; // r0 UploadActionDelegate *v14; // r0 _DWORD v17[2]; // [sp+8h] [bp-8h] BYREF v17[0] = a3; v17[1] = a4; v4 = *a3; m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; sub_776584((int)v17, *a3); cocos2d::CCDictionary::removeObjectForKey(m_friendReqAndUserBlocks); sub_774008(v17); SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v4, 1); sub_776584((int)v17, "-1"); v9 = sub_3BE0D8(a2, (int)v17); sub_774008(v17); if ( v9 ) { m_uploadActionDelegate = a1->m_uploadActionDelegate; if ( m_uploadActionDelegate ) ((void (__fastcall *)(UploadActionDelegate *, int, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int), GameLevelManager *, int))m_uploadActionDelegate->uploadActionFailed)( m_uploadActionDelegate, SplitIntFromKey, 34, m_uploadActionDelegate->uploadActionFailed, a1, a2); } else { v11 = GameLevelManager::userInfoForAccountID(a1, SplitIntFromKey); v12 = v11; if ( v11 ) { v11->m_friendReqStatus = 2; m_userInfoDelegate = a1->m_userInfoDelegate; if ( m_userInfoDelegate ) m_userInfoDelegate->userInfoChanged(m_userInfoDelegate, v12); } v14 = a1->m_uploadActionDelegate; if ( v14 ) ((void (__fastcall *)(UploadActionDelegate *, int, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int), GameLevelManager *, int))v14->uploadActionFinished)( v14, SplitIntFromKey, 34, v14->uploadActionFinished, a1, a2); GameLevelManager::friendRequestWasRemoved(a1, SplitIntFromKey, 0); GameLevelManager::resetStoredUserList(a1, Blocked); GameLevelManager::invalidateMessages(a1, 0, 1); GameLevelManager::removeUserFromList(a1, SplitIntFromKey, (UserListType)0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source