//
// PlayLayer::toggleBGEffectVisibility from 0x5d0768 to 0x5d0798 (48 bytes)
//
// 3 xrefs:
// > EffectGameObject::triggerObject @ 0x76fc4c
// > EffectGameObject::triggerObject @ 0x76fe30
// > ??> @ 0x9bfb8
//
// 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
//
void PlayLayer::toggleBGEffectVisibility(PlayLayer *a1, bool a2)
{
_BOOL4 v2; // w1
v2 = !a2;
a1->m_bgEffectDisabled = v2;
if ( v2 )
{
cocos2d::CCParticleSystem::stopSystem(a1->m_glitterParticles);
}
else if ( a1->m_glitterEnabled )
{
cocos2d::CCParticleSystem::resumeSystem(a1->m_glitterParticles);
}
}