//
// MenuLayer::onPlay from 0x30a68a to 0x30a6c4 (58 bytes)
//
// 1 xrefs:
// > MenuLayer::keyDown @ 0x30b5ba
//
// 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 MenuLayer::onPlay(MenuLayer *a1, cocos2d::CCObject *a2)
{
_BOOL4 m_showingTOS; // r4
cocos2d::CCDirector *v3; // r5
cocos2d::CCScene *v4; // r0
cocos2d::CCTransitionFade *v5; // r1
m_showingTOS = a1->m_showingTOS;
if ( !a1->m_showingTOS )
{
MenuLayer::willClose(a1);
GameManager::sharedState()->m_sceneEnum = 8;
v3 = cocos2d::CCDirector::sharedDirector();
v4 = LevelSelectLayer::scene(m_showingTOS);
v5 = cocos2d::CCTransitionFade::create(0.5, v4);
cocos2d::CCDirector::replaceScene(v3, v5);
}
}