// // GJAccountSettingsLayer::onMessageSetting from 0x1002d699c to 0x1002d6a30 (148 bytes) // // 4 xrefs: // > GJAccountSettingsLayer::init @ 0x1002d6604 // > GJAccountSettingsLayer::init @ 0x1002d58e0 // > GJAccountSettingsLayer::init @ 0x1002d5974 // > GJAccountSettingsLayer::init @ 0x1002d5a0c // // 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::onMessageSetting(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *m_messageSettings; // 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_messageStatus = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); m_messageSettings = a1->m_messageSettings; if ( m_messageSettings ) { data = m_messageSettings->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_messageStatus; CCMenuItemToggler::toggle(v8, v9); ++arr; } while ( (unsigned __int64)arr <= v7 ); } } }