//
// MenuLayer::onCreator from 0x100304d64 to 0x100304db4 (80 bytes)
//
// 2 xrefs:
// > MenuLayer::keyDown @ 0x100305930
// > MenuLayer::init @ 0x100303b6c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:03:07 +0000
//
__int64 __fastcall MenuLayer::onCreator(__int64 result)
{
__int64 v1; // x0
__int64 v2; // x19
_QWORD *v3; // x0
char *v4; // x0
if ( (*(_BYTE *)(result + 432) & 1) == 0 )
{
v1 = MenuLayer::willClose(result);
*(_BYTE *)(GameManager::sharedState(v1) + 928) = 1;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = CreatorLayer::scene();
v4 = cocos2d::CCTransitionFade::create_1((__int64)v3, 0.5);
return cocos2d::CCDirector::replaceScene(v2, v4);
}
return result;
}