// // ColorSelectPopup::updateCopyColor from 0x100420858 to 0x10042090c (180 bytes) // // 4 xrefs: // > ColorSelectPopup::onToggleHSVMode @ 0x10041eed8 // > ColorSelectPopup::onUpdateCustomColor @ 0x10041f210 // > ColorSelectPopup::textChanged @ 0x100420820 // > ColorSelectPopup::colorSelectClosed @ 0x100420a6c // // 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::updateCopyColor(ColorSelectPopup *a1) { EffectGameObject *m_gameObject; // x0 int m_copyColorID; // w20 int v4; // w8 cocos2d::CCArray *m_gameObjects; // x0 unsigned int v6; // w20 EffectGameObject *v7; // x21 int v8; // w22 int v9; // w8 ColorAction *m_colorAction; // x8 int v11; // w9 m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_copyColorID = a1->m_copyColorID; if ( EffectGameObject::getTargetColorIndex(m_gameObject) == m_copyColorID ) v4 = 0; else v4 = m_copyColorID; a1->m_gameObject->m_copyColorID = v4; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) { if ( (unsigned int)sub_10024A36C((__int64)m_gameObjects) ) { v6 = 0; do { v7 = (EffectGameObject *)sub_10024A388((__int64)a1->m_gameObjects, v6); v8 = a1->m_copyColorID; if ( EffectGameObject::getTargetColorIndex(v7) == v8 ) v9 = 0; else v9 = v8; v7->m_copyColorID = v9; ++v6; } while ( v6 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) ); } } else { m_colorAction = a1->m_colorAction; if ( m_colorAction ) { v11 = a1->m_copyColorID; if ( m_colorAction->m_colorID == v11 ) v11 = 0; m_colorAction->m_copyID = v11; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source