//
// MenuLayer::onCreator from 0x1003915d0 to 0x10039164e (126 bytes)
//
// 2 xrefs:
// > MenuLayer::keyDown @ 0x10039238b
// > MenuLayer::init @ 0x100390440
//
// 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 __fastcall MenuLayer::onCreator(MenuLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v2; // rbx
cocos2d::CCScene *v3; // rax
cocos2d::CCTransitionFade *v4; // rax
if ( !a1->m_showingTOS )
{
if ( GooglePlayManager::sharedState()->m_delegate1 == &a1->GooglePlayDelegate )
GooglePlayManager::sharedState()->m_delegate1 = nullptr;
GameManager::sharedState()->m_inMenuLayer = 0;
GameManager::sharedState()->m_clickedEditor = 1;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = CreatorLayer::scene();
v4 = cocos2d::CCTransitionFade::create_1(0.5, v3);
cocos2d::CCDirector::replaceScene(v2, v4);
}
}