//
// GJEffectManager::activeColorForIndex from 0x1002de420 to 0x1002de467 (71 bytes)
//
// 30 xrefs:
// > PlayLayer::updateVisibility @ 0x1000b7061
// > PlayLayer::updateVisibility @ 0x1000b70be
// > PlayLayer::updateVisibility @ 0x1000b70d9
// > PlayLayer::applyCustomEnterEffect @ 0x1000b8461
// > LevelEditorLayer::updateGameObjects @ 0x1000de064
// > LevelEditorLayer::updateVisibility @ 0x1000ead85
// > LevelEditorLayer::updateVisibility @ 0x1000eb26a
// > LevelEditorLayer::updateVisibility @ 0x1000eb492
// > LevelEditorLayer::updateObjectColors @ 0x1000eb92f
// > LevelEditorLayer::updateObjectColors @ 0x1000ebb2f
// > LevelEditorLayer::transferDefaultColors @ 0x1000eeb31
// > LevelEditorLayer::postUpdate @ 0x1000f3460
// > GJBaseGameLayer::updateLevelColors @ 0x10011461a
// > GJBaseGameLayer::updateLevelColors @ 0x100114649
// > GJBaseGameLayer::updateLevelColors @ 0x10011468b
// > GJBaseGameLayer::updateLevelColors @ 0x1001146bc
// > GJBaseGameLayer::updateLevelColors @ 0x1001147c0
// > GJBaseGameLayer::updateLevelColors @ 0x1001147e7
// > GJBaseGameLayer::updateGradientLayers @ 0x100139988
// > GJBaseGameLayer::updateGradientLayers @ 0x1001399a6
// > GJBaseGameLayer::updateShaderLayer @ 0x10013b3ea
// > GJBaseGameLayer::updateShaderLayer @ 0x10013b425
// > GJBaseGameLayer::updateShaderLayer @ 0x10013b605
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100142ac7
// > GJBaseGameLayer::preUpdateVisibility @ 0x10014f8cf
// > GJBaseGameLayer::preUpdateVisibility @ 0x10014f8e0
// > GJBaseGameLayer::visitWithColorFlash @ 0x100164fa0
// > GJBaseGameLayer::visitWithColorFlash @ 0x100164fbb
// > GJBaseGameLayer::visitWithColorFlash @ 0x100164fda
// > PlayerObject::ringJump @ 0x100414bf0
//
// 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 v2; // eax
ColorActionSprite *ColorSprite; // rcx
v2 = 0xFFFFFF;
if ( a2 && a2 != 1011 )
{
if ( a2 == 1010 )
{
return (cocos2d::ccColor3B)0;
}
else
{
ColorSprite = GJEffectManager::getColorSprite(a1, a2);
v2 = 0xFFFFFF;
if ( ColorSprite )
return (cocos2d::ccColor3B)(*(unsigned __int16 *)&ColorSprite->m_copyColor.r | (ColorSprite->m_copyColor.b << 16));
}
}
return (cocos2d::ccColor3B)v2;
}