//
// PlayLayer::toggleBGEffectVisibility from 0x312fc6 to 0x312ff0 (42 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x3edfba
//
// 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; // r1
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);
}
}