//
// GJEffectManager::activeColorForIndex from 0x10000f10c to 0x10000f164 (88 bytes)
//
// 32 xrefs:
// > GJEffectManager::processCopyColorPulseActions @ 0x10000f60c
// > GJEffectManager::colorForPulseEffect @ 0x10000fa50
// > PlayLayer::updateVisibility @ 0x10011c4c8
// > PlayLayer::updateVisibility @ 0x10011c518
// > PlayLayer::updateVisibility @ 0x10011c530
// > PlayLayer::applyCustomEnterEffect @ 0x10011d2ec
// > GJBaseGameLayer::updateLevelColors @ 0x1001dde88
// > GJBaseGameLayer::updateLevelColors @ 0x1001ddeb4
// > GJBaseGameLayer::updateLevelColors @ 0x1001ddee8
// > GJBaseGameLayer::updateLevelColors @ 0x1001ddf10
// > GJBaseGameLayer::updateLevelColors @ 0x1001ddfe4
// > GJBaseGameLayer::updateLevelColors @ 0x1001de004
// > GJBaseGameLayer::updateGradientLayers @ 0x1001f002c
// > GJBaseGameLayer::updateGradientLayers @ 0x1001f0044
// > GJBaseGameLayer::updateShaderLayer @ 0x1001f12d0
// > GJBaseGameLayer::updateShaderLayer @ 0x1001f1300
// > GJBaseGameLayer::updateShaderLayer @ 0x1001f1474
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001f5d40
// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd87c
// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd888
// > GJBaseGameLayer::visitWithColorFlash @ 0x100208f90
// > GJBaseGameLayer::visitWithColorFlash @ 0x100208fa8
// > GJBaseGameLayer::visitWithColorFlash @ 0x100208fc4
// > PlayerObject::ringJump @ 0x10022866c
// > LevelEditorLayer::updateGameObjects @ 0x100358a04
// > LevelEditorLayer::updateVisibility @ 0x10035e8d4
// > LevelEditorLayer::updateVisibility @ 0x10035ed14
// > LevelEditorLayer::updateVisibility @ 0x10035ef44
// > LevelEditorLayer::updateObjectColors @ 0x10035f334
// > LevelEditorLayer::updateObjectColors @ 0x10035f524
// > LevelEditorLayer::transferDefaultColors @ 0x10036081c
// > LevelEditorLayer::postUpdate @ 0x1003636a8
//
// 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 __fastcall GJEffectManager::activeColorForIndex(GJEffectManager *a1, int a2)
{
int v3; // w0
ColorActionSprite *ColorSprite; // x0
v3 = 0xFFFFFF;
if ( a2 && a2 != 1011 )
{
if ( a2 == 1010 )
{
return (cocos2d::ccColor3B)0;
}
else
{
ColorSprite = GJEffectManager::getColorSprite(a1, a2);
if ( ColorSprite )
return (cocos2d::ccColor3B)(*(unsigned __int16 *)&ColorSprite->m_copyColor.r | (ColorSprite->m_copyColor.b << 16));
else
return (cocos2d::ccColor3B)0xFFFFFF;
}
}
return (cocos2d::ccColor3B)v3;
}