// // LevelInfoLayer::onEdit from 0x140422a10 to 0x140422bcc (444 bytes) // // 3 xrefs: // > LevelInfoLayer::onPlay @ 0x1404214e7 // > LevelInfoLayer::init @ 0x14041cabd // > @ 0x1409268a0 // // 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:32:09 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall LevelInfoLayer::onEdit(__int64 a1) { __int64 v2; // rax _QWORD *AudioFileName; // rdi __int64 v4; // rcx __int64 v5; // rbx __int64 v6; // rdx __int64 v7; // rcx __int64 v8; // r8 __int64 v9; // r9 struct cocos2d::CCScene *v10; // rdi __int64 v11; // rcx cocos2d::CCObject *v12; // rax struct cocos2d::CCScene *v13; // rbx __int64 v14; // rcx cocos2d::CCDirector *v15; // rax _QWORD v16[5]; // [rsp+50h] [rbp-28h] BYREF void *v17; // [rsp+80h] [rbp+8h] void *v18; // [rsp+90h] [rbp+18h] if ( !*(_BYTE *)(a1 + 488) && *(_BYTE *)(a1 + 645) && !*(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1) + 176) ) { if ( (unsigned __int8)LevelInfoLayer::shouldDownloadLevel(a1) ) { LevelInfoLayer::downloadLevel(a1); } else { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); *(_BYTE *)(a1 + 488) = 1; v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v17 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } *(_DWORD *)(v2 + 740) = 3; AudioFileName = GJGameLevel::getAudioFileName(*(_QWORD *)(a1 + 504), v16); v4 = qword_14090BF60; if ( !qword_14090BF60 ) { v18 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v4 = qword_14090BF60; } FMODAudioEngine::loadMusic(v4, (__int64)AudioFileName, 1.0, 0.0, 1065353216, 1, 0, 0, 0); v5 = *(_QWORD *)(a1 + 504); v10 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v7, v6, v8, v9); *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v11) + 232) = v10; v12 = LevelEditorLayer::create(v5, 0); (*(void (__fastcall **)(struct cocos2d::CCScene *, cocos2d::CCObject *))(*(_QWORD *)v10 + 464LL))(v10, v12); *((_DWORD *)v10 + 7) = 6; v13 = cocos2d::CCTransitionFade::create(0.5, v10); v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::replaceScene(v15, v13); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source