//
// GJEffectManager::activeColorForIndex from 0x1002c8ec0 to 0x1002c8f07 (71 bytes)
//
// 30 xrefs:
// > PlayLayer::updateVisibility @ 0x10008496e
// > PlayLayer::updateVisibility @ 0x1000849cb
// > PlayLayer::updateVisibility @ 0x1000849e6
// > PlayLayer::applyCustomEnterEffect @ 0x100085d61
// > LevelEditorLayer::updateGameObjects @ 0x1000ad184
// > LevelEditorLayer::updateVisibility @ 0x1000bdc37
// > LevelEditorLayer::updateVisibility @ 0x1000be13e
// > LevelEditorLayer::updateVisibility @ 0x1000be343
// > LevelEditorLayer::updateObjectColors @ 0x1000be7ef
// > LevelEditorLayer::updateObjectColors @ 0x1000be9ef
// > LevelEditorLayer::transferDefaultColors @ 0x1000c22c1
// > LevelEditorLayer::postUpdate @ 0x1000c7350
// > GJBaseGameLayer::updateLevelColors @ 0x1000f08ba
// > GJBaseGameLayer::updateLevelColors @ 0x1000f08e9
// > GJBaseGameLayer::updateLevelColors @ 0x1000f092b
// > GJBaseGameLayer::updateLevelColors @ 0x1000f095c
// > GJBaseGameLayer::updateLevelColors @ 0x1000f0a60
// > GJBaseGameLayer::updateLevelColors @ 0x1000f0a87
// > GJBaseGameLayer::updateGradientLayers @ 0x1001172b5
// > GJBaseGameLayer::updateGradientLayers @ 0x1001172d3
// > GJBaseGameLayer::updateShaderLayer @ 0x10011898a
// > GJBaseGameLayer::updateShaderLayer @ 0x1001189c5
// > GJBaseGameLayer::updateShaderLayer @ 0x100118ba5
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100121067
// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d7ef
// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d800
// > GJBaseGameLayer::visitWithColorFlash @ 0x1001444f0
// > GJBaseGameLayer::visitWithColorFlash @ 0x10014450b
// > GJBaseGameLayer::visitWithColorFlash @ 0x10014452a
// > PlayerObject::ringJump @ 0x100401c70
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:28:09 +0000
//
__int64 __fastcall GJEffectManager::activeColorForIndex(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 ColorSprite; // rcx
result = 0xFFFFFF;
if ( (_DWORD)a2 && (_DWORD)a2 != 1011 )
{
if ( (_DWORD)a2 == 1010 )
{
return 0;
}
else
{
ColorSprite = GJEffectManager::getColorSprite(a1, a2);
result = 0xFFFFFF;
if ( ColorSprite )
return *(unsigned __int16 *)(ColorSprite + 323) | (*(unsigned __int8 *)(ColorSprite + 325) << 16);
}
}
return result;
}