// // ColorSelectPopup::updateCustomColorIdx from 0x73c814 to 0x73c894 (128 bytes) // // 4 xrefs: // > ColorSelectPopup::onUpdateCustomColor @ 0x73cacc // > ColorSelectPopup::colorSelectClosed @ 0x73ce88 // > ColorSelectPopup::textChanged @ 0x742310 // > @ 0x6ab90 // // 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 ColorSelectPopup::updateCustomColorIdx(ColorSelectPopup *a1) { int m_colorID; // w1 EffectGameObject *m_gameObject; // x2 cocos2d::CCArray *m_gameObjects; // x1 unsigned int v5; // w20 __int64 v6; // x0 bool v7; // cf unsigned int v8; // w1 m_colorID = a1->m_colorID; m_gameObject = a1->m_gameObject; if ( m_colorID <= 0 ) m_colorID = 1; a1->m_colorID = m_colorID; if ( m_gameObject ) { m_gameObject->m_targetColor = m_colorID; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) { v5 = 0; while ( 1 ) { v7 = v5 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects); v8 = v5++; if ( v7 ) break; v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8); m_gameObjects = a1->m_gameObjects; *(_DWORD *)(v6 + 1008) = a1->m_colorID; } } } }