// // ColorSelectPopup::updateCustomColorIdx from 0x10072adb0 to 0x10072ae31 (129 bytes) // // 0 xrefs: // // 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 ColorSelectPopup::updateCustomColorIdx(ColorSelectPopup *a1) { int m_colorID; // eax EffectGameObject *m_gameObject; // rcx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v5; // r14d m_colorID = 1; if ( a1->m_colorID >= 2 ) m_colorID = a1->m_colorID; a1->m_colorID = m_colorID; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_targetColor = m_colorID; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070((__int64)m_gameObjects) ) { v5 = 0; do *(_DWORD *)(sub_1007200C0((__int64)a1->m_gameObjects, v5++) + 1024) = a1->m_colorID; while ( v5 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) ); } } }