//
// GJEffectManager::colorForIndex from 0x8bfc74 to 0x8bfcd4 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0xa7118
//
// 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; // x0
unsigned __int8 r; // [xsp+18h] [xbp+18h]
unsigned __int8 g; // [xsp+19h] [xbp+19h]
unsigned __int8 b; // [xsp+1Ah] [xbp+1Ah]
ColorAction = GJEffectManager::getColorAction(a1, a2);
if ( ColorAction )
{
r = ColorAction->m_fromColor.r;
g = ColorAction->m_fromColor.g;
b = ColorAction->m_fromColor.b;
}
else
{
r = -1;
g = -1;
b = -1;
}
return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16));
}