// // FRequestProfilePage::onToggleAllObjects from 0x1001b6c5c to 0x1001b6cf4 (152 bytes) // // 1 xrefs: // > FRequestProfilePage::init @ 0x1001b655c // // 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 FRequestProfilePage::onToggleAllObjects(FRequestProfilePage *a1, cocos2d::CCObject *a2) { GameLevelManager *v3; // x0 std::string *p_m_key; // x1 cocos2d::CCArray *StoredOnlineLevels; // x0 cocos2d::CCArray *v6; // x20 cocos2d::ccArray *data; // x8 __int64 num; // x9 unsigned __int64 arr; // x8 unsigned __int64 v10; // x9 a1->m_toggledAll ^= 1u; v3 = GameLevelManager::sharedState(); p_m_key = &a1->m_key; if ( a1->m_key.m_data.m_short.shortStorage.__elems_[22] < 0 ) p_m_key = (std::string *)p_m_key->m_data.m_long.capacitym1; StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v3, (const char *)p_m_key); if ( StoredOnlineLevels ) { v6 = StoredOnlineLevels; if ( (unsigned int)sub_10024A36C(StoredOnlineLevels) ) { data = v6->data; num = data->num; if ( (_DWORD)num ) { arr = (unsigned __int64)data->arr; v10 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; *(_BYTE *)(*(_QWORD *)arr + 689LL) = a1->m_toggledAll; arr += 8LL; } while ( arr <= v10 ); } CustomListView::reloadAll((CustomListView *)a1->m_listLayer->m_list); } } }