//
// PlayLayer::toggleDebugDraw from 0x5c9dc4 to 0x5c9e50 (140 bytes)
//
// 5 xrefs:
// > PlayLayer::updateDebugDrawSettings @ 0x5c9eac
// > PlayLayer::destroyPlayer @ 0x5d2020
// > PlayLayer::togglePracticeMode @ 0x5d23fc
// > PlayLayer::resetLevel @ 0x5e5a0c
// > ??> @ 0x9fbb8
//
// 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::toggleDebugDraw(PlayLayer *a1)
{
_BOOL4 shouldDebugDraw; // w20
shouldDebugDraw = PlayLayer::shouldDebugDraw(a1);
if ( shouldDebugDraw != a1->m_debugDrawNode->isVisible(a1->m_debugDrawNode) )
{
cocos2d::CCDrawNode::clear(a1->m_debugDrawNode);
a1->m_debugDrawNode->setVisible(a1->m_debugDrawNode, shouldDebugDraw);
if ( shouldDebugDraw )
a1->updateDebugDraw(a1);
}
}