// // GJAccountSettingsLayer::onFriendRequests from 0x8c2724 to 0x8c27c4 (160 bytes) // // 5 xrefs: // > GJAccountSettingsLayer::init @ 0x8dfb94 // > @ 0xc2b38 // > GJAccountSettingsLayer::init @ 0x8dec20 // > GJAccountSettingsLayer::init @ 0x8decbc // > @ 0x122ec08 // // 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 GJAccountSettingsLayer::onFriendRequests(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *m_friendRequestSettings; // x0 cocos2d::ccArray *data; // x1 CCMenuItemToggler **arr; // x20 __int64 v6; // x0 char *v7; // x21 CCMenuItemToggler *v8; // x19 const cocos2d::CCObject *v9; // x0 bool v10; // w1 if ( a2 ) a1->m_friendStatus = a2->getTag(a2); m_friendRequestSettings = a1->m_friendRequestSettings; if ( m_friendRequestSettings ) { data = m_friendRequestSettings->data; if ( data->num ) { arr = (CCMenuItemToggler **)data->arr; v6 = 8LL * data->num - 8; v7 = (char *)arr + v6; if ( arr <= (CCMenuItemToggler **)((char *)arr + v6) ) { do { v8 = *arr; if ( !*arr ) break; v9 = *arr++; v10 = v8->getTag(v9) != a1->m_friendStatus; CCMenuItemToggler::toggle(v8, v10); } while ( v7 >= (char *)arr ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source