//
// CreateParticlePopup::updateColorSprite from 0x1002ce268 to 0x1002ce37c (276 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::init @ 0x1002cb908
// > CreateParticlePopup::init @ 0x1002cb9dc
//
// 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 CreateParticlePopup::updateColorSprite(CreateParticlePopup *a1, int a2)
{
void (*setColor)(void); // x8
if ( a2 == 2 )
{
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getEndColor)(a1->m_particle);
setColor = (void (*)(void))a1->m_endColorSprite->setColor;
}
else
{
if ( a2 != 1 )
return;
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getStartColor)(a1->m_particle);
setColor = (void (*)(void))a1->m_startColorSprite->setColor;
}
setColor();
}