//
// GJEffectManager::colorForIndex from 0x499db0 to 0x499e00 (80 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
//
cocos2d::ccColor3B GJEffectManager::colorForIndex(GJEffectManager *a1, int a2)
{
ColorAction *ColorAction; // r0
unsigned __int8 b; // r3
__int16 v6; // [sp+4h] [bp-8h]
ColorAction = GJEffectManager::getColorAction(a1, a2);
if ( ColorAction )
{
b = ColorAction->m_fromColor.b;
v6 = *(_WORD *)&ColorAction->m_fromColor.r;
}
else
{
b = -1;
v6 = -1;
}
return (cocos2d::ccColor3B)((unsigned __int8)v6 | (unsigned __int16)(HIBYTE(v6) << 8) | (b << 16));
}