//
// PlayLayer::toggleGlitter from 0x5c9500 to 0x5c955c (92 bytes)
//
// 2 xrefs:
// > ??> @ 0x9e658
// > ??> @ 0x1148a18
//
// 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::toggleGlitter(PlayLayer *a1, bool a2)
{
unsigned int v3; // w19
unsigned int m_bgEffectDisabled; // w1
cocos2d::CCParticleSystemQuad *m_glitterParticles; // x0
v3 = a2;
if ( !GameManager::sharedState()->m_performanceMode )
{
m_bgEffectDisabled = a1->m_bgEffectDisabled;
a1->m_glitterEnabled = v3;
m_glitterParticles = a1->m_glitterParticles;
if ( m_bgEffectDisabled >= v3 )
cocos2d::CCParticleSystem::stopSystem(m_glitterParticles);
else
cocos2d::CCParticleSystem::resumeSystem(m_glitterParticles);
}
}