// // GJAccountSettingsLayer::onCommentSetting from 0x1002d6ac4 to 0x1002d6b58 (148 bytes) // // 4 xrefs: // > GJAccountSettingsLayer::init @ 0x1002d661c // > GJAccountSettingsLayer::init @ 0x1002d5e84 // > GJAccountSettingsLayer::init @ 0x1002d5f18 // > GJAccountSettingsLayer::init @ 0x1002d5fb0 // // 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::onCommentSetting(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *m_commentSettings; // 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_commentHistoryStatus = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); m_commentSettings = a1->m_commentSettings; if ( m_commentSettings ) { data = m_commentSettings->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_commentHistoryStatus; CCMenuItemToggler::toggle(v8, v9); ++arr; } while ( (unsigned __int64)arr <= v7 ); } } }