//
// ShaderLayer::resetAllShaders from 0x1003d1f90 to 0x1003d2019 (137 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x1000de094
// > GJBaseGameLayer::triggerShaderCommand @ 0x10013aa67
// > GJBaseGameLayer::resetLevelVariables @ 0x1001594bd
//
// 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
//
bool __fastcall ShaderLayer::resetAllShaders(ShaderLayer *a1)
{
bool result; // al
cocos2d::CCNode::stopAllActions(a1);
GJShaderState::reset(&a1->m_state);
a1->m_state.m_time = a1->m_state.m_startTime;
if ( a1->m_state.m_minBlendingLayer == 1 )
{
if ( a1->m_state.m_maxBlendingLayer == 15 )
goto LABEL_3;
}
else
{
a1->m_state.m_minBlendingLayer = 1;
a1->m_state.m_zLayerDirty = 1;
if ( a1->m_state.m_maxBlendingLayer == 15 )
{
LABEL_3:
if ( !a1->m_state.m_noPlayerParticles )
return result;
goto LABEL_4;
}
}
a1->m_state.m_maxBlendingLayer = 15;
a1->m_state.m_zLayerDirty = 1;
if ( !a1->m_state.m_noPlayerParticles )
return result;
LABEL_4:
a1->m_state.m_noPlayerParticles = 0;
return result;
}