// // EditLevelLayer::onEdit from 0x14017b800 to 0x14017b9a1 (417 bytes) // // 3 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x14017c587 // > EditLevelLayer::init @ 0x140179143 // > @ 0x140918770 // // This function is hookable on this platform (idp: pc, 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:27:35 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall EditLevelLayer::onEdit(__int64 a1) { __int64 v2; // rax __int64 v3; // rax __int64 AudioFileName; // rdi __int64 v5; // rcx __int64 v6; // rbx __int64 v7; // rdx __int64 v8; // rcx __int64 v9; // r8 __int64 v10; // r9 struct cocos2d::CCScene *v11; // rdi __int64 v12; // rcx __int64 v13; // rax struct cocos2d::CCScene *v14; // rbx __int64 v15; // rcx cocos2d::CCDirector *v16; // rax void *v18; // [rsp+90h] [rbp+18h] void *v19; // [rsp+98h] [rbp+20h] v2 = cocos2d::CCDirector::sharedDirector(a1); if ( !*(_BYTE *)(v2 + 176) && !*(_BYTE *)(a1 + 496) ) { EditLevelLayer::closeTextInputs(a1); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); *(_BYTE *)(a1 + 496) = 1; v3 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v18 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } *(_DWORD *)(v3 + 740) = 3; EditLevelLayer::verifyLevelName(a1); AudioFileName = GJGameLevel::getAudioFileName(*(_QWORD *)(a1 + 472)); v5 = qword_14090BF60; if ( !qword_14090BF60 ) { v19 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v5 = qword_14090BF60; } FMODAudioEngine::loadMusic(v5, AudioFileName, 1.0, 0.0, 1065353216, 1, 0, 0, 0); v6 = *(_QWORD *)(a1 + 472); v11 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v8, v7, v9, v10); *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v12) + 232) = v11; v13 = LevelEditorLayer::create(v6, 0); (*(void (__fastcall **)(struct cocos2d::CCScene *, __int64))(*(_QWORD *)v11 + 464LL))(v11, v13); *((_DWORD *)v11 + 7) = 6; v14 = cocos2d::CCTransitionFade::create(0.5, v11); v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15); LOBYTE(v2) = cocos2d::CCDirector::replaceScene(v16, v14); } return v2; }