//
// GJColorSetupLayer::updateSpriteColor from 0x8a19c0 to 0x8a1a64 (164 bytes)
//
// 2 xrefs:
// > GJColorSetupLayer::updateSpriteColors @ 0x8a1b28
// > ??> @ 0x3dfe0
//
// 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 GJColorSetupLayer::updateSpriteColor(
GJColorSetupLayer *a1,
ColorChannelSprite *a2,
cocos2d::CCLabelBMFont *a3,
int a4)
{
void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x22
cocos2d::CCString *v8; // x0
const char *CString; // x0
ColorAction *ColorAction; // x1
setString = a3->setString;
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Col %i",
(const char *)(unsigned int)a4);
CString = cocos2d::CCString::getCString(v8);
setString(a3, (const unsigned __int8 *)CString);
if ( GJEffectManager::colorExists(a1->m_settingsObject->m_effectManager, a4) )
{
ColorAction = GJEffectManager::getColorAction(a1->m_settingsObject->m_effectManager, a4);
ColorChannelSprite::updateValues(a2, ColorAction);
}
else
{
ColorChannelSprite::updateValues(a2, nullptr);
}
}