// // CustomizeObjectLayer::updateSelected from 0x461d02 to 0x461dc4 (194 bytes) // // 5 xrefs: // > CustomizeObjectLayer::textChanged @ 0x461e24 // > CustomizeObjectLayer::onUpdateCustomColor @ 0x461ee6 // > CustomizeObjectLayer::onSelectColor @ 0x461fdc // > CustomizeObjectLayer::colorSetupClosed @ 0x462012 // > CustomizeObjectLayer::onNextColorChannel @ 0x4620a8 // // 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 CustomizeObjectLayer::updateSelected(CustomizeObjectLayer *a1, int a2) { GameObject *m_targetObject; // r0 _BOOL4 v5; // r7 GJSpriteColor *RelativeSpriteColor; // r0 int v7; // r6 int m_defaultColorID; // r3 int v9; // r3 int v10; // r6 unsigned int i; // r4 GameObject *v12; // r11 GJSpriteColor *v13; // r0 int v14; // r3 int v15; // r3 m_targetObject = a1->m_targetObject; v5 = a2 == 0; if ( m_targetObject ) { RelativeSpriteColor = GameObject::getRelativeSpriteColor(m_targetObject, a1->m_selectedMode); if ( RelativeSpriteColor ) { if ( v5 ) { m_defaultColorID = RelativeSpriteColor->m_defaultColorID; if ( m_defaultColorID > 1100 ) v9 = 1101; else v9 = m_defaultColorID & ~(m_defaultColorID >> 31); RelativeSpriteColor->m_defaultColorID = v9; RelativeSpriteColor->m_colorID = 0; } else { if ( a2 > 1100 ) v7 = 1101; else v7 = a2 & ~(a2 >> 31); RelativeSpriteColor->m_colorID = v7; } a1->m_targetObject->m_updateParents = 1; } } else if ( a1->m_targetObjects ) { if ( a2 > 1100 ) v10 = 1101; else v10 = a2 & ~(a2 >> 31); for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); ++i ) { v12 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i); v13 = GameObject::getRelativeSpriteColor(v12, a1->m_selectedMode); if ( v13 ) { if ( v5 ) { v14 = v13->m_defaultColorID; v13->m_colorID = 0; if ( v14 > 1100 ) v15 = 1101; else v15 = v14 & ~(v14 >> 31); v13->m_defaultColorID = v15; } else { v13->m_colorID = v10; } v12->m_updateParents = 1; } } } }