// // GJAccountSettingsLayer::onFriendRequests from 0x1002d6a30 to 0x1002d6ac4 (148 bytes) // // 3 xrefs: // > GJAccountSettingsLayer::init @ 0x1002d6610 // > GJAccountSettingsLayer::init @ 0x1002d5c04 // > GJAccountSettingsLayer::init @ 0x1002d5c98 // // 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 GJAccountSettingsLayer::onFriendRequests(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *m_friendRequestSettings; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x8 CCMenuItemToggler **arr; // x21 unsigned __int64 v7; // x22 CCMenuItemToggler *v8; // x20 bool v9; // w1 if ( a2 ) a1->m_friendStatus = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); m_friendRequestSettings = a1->m_friendRequestSettings; if ( m_friendRequestSettings ) { data = m_friendRequestSettings->data; num = data->num; if ( (_DWORD)num ) { arr = (CCMenuItemToggler **)data->arr; v7 = (unsigned __int64)&arr[num - 1]; do { v8 = *arr; if ( !*arr ) break; v9 = ((unsigned int (__fastcall *)(CCMenuItemToggler *))v8->getTag)(*arr) != a1->m_friendStatus; CCMenuItemToggler::toggle(v8, v9); ++arr; } while ( (unsigned __int64)arr <= v7 ); } } }