// // GJAccountSettingsLayer::onCommentSetting from 0x8c27c4 to 0x8c2864 (160 bytes) // // 6 xrefs: // > GJAccountSettingsLayer::init @ 0x8dfba0 // > @ 0xb4480 // > GJAccountSettingsLayer::init @ 0x8deea4 // > GJAccountSettingsLayer::init @ 0x8def3c // > GJAccountSettingsLayer::init @ 0x8defd4 // > @ 0x122e410 // // 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::onCommentSetting(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *m_commentSettings; // 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_commentHistoryStatus = a2->getTag(a2); m_commentSettings = a1->m_commentSettings; if ( m_commentSettings ) { data = m_commentSettings->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_commentHistoryStatus; CCMenuItemToggler::toggle(v8, v10); } while ( v7 >= (char *)arr ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source