// // EditLevelLayer::onPlay from 0x1400d7e50 to 0x1400d800b (443 bytes) // // 3 xrefs: // > EditLevelLayer::keyDown @ 0x1400d9acd // > EditLevelLayer::init @ 0x1400d5f2a // > @ 0x1406c87e4 // // 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 // // Hidden C++ exception states: #wind=4 void EditLevelLayer::onPlay(EditLevelLayer *a1, cocos2d::CCObject *a2) { __int64 v3; // rbx __int64 v4; // r8 __int64 v5; // r9 int v6; // ecx __int64 v7; // rbx struct cocos2d::CCDelayTime *v8; // rax struct cocos2d::CCSequence *v9; // rax cocos2d::ccColor3B *v10; // r8 float v11; // [rsp+20h] [rbp-38h] __int128 v12; // [rsp+30h] [rbp-28h] BYREF __int64 v13; // [rsp+40h] [rbp-18h] __int64 v14; // [rsp+48h] [rbp-10h] FMODAudioEngine *v15; // [rsp+70h] [rbp+18h] FMODAudioEngine *v16; // [rsp+78h] [rbp+20h] if ( !*(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1) + 168) && !a1->m_exiting ) { EditLevelLayer::closeTextInputs(a1); a1->setKeypadEnabled(a1, 0); a1->m_exiting = 1; v3 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v15 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v3 = qword_1406C2E88; } if ( *(_QWORD *)(v3 + 552) ) FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v3 + 552)); sub_14005E0D0((_QWORD *)(v3 + 1064)); sub_14005E0D0((_QWORD *)(v3 + 1128)); sub_14005E0D0((_QWORD *)(v3 + 1192)); v12 = 0; *(_QWORD *)&v12 = sub_14003AA10(0x20u); v13 = 16; v14 = 31; strcpy((char *)v12, "playSound_01.ogg"); v6 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v16 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v6 = qword_1406C2E88; } FMODAudioEngine::playEffect(v6, (__int64)&v12, v4, v5, 1050253722); EditLevelLayer::verifyLevelName(a1); v7 = cocos2d::CCCallFunc::create(a1, EditLevelLayer::playStep2); v8 = cocos2d::CCDelayTime::create(0.0); v9 = cocos2d::CCSequence::create(v8, v7, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v9, v10, 0.0, v11); } }