// // EditLevelLayer::onPlay from 0x14017b0f0 to 0x14017b431 (833 bytes) // // 4 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x14017c75f // > EditLevelLayer::keyDown @ 0x14017d2ad // > EditLevelLayer::init @ 0x140179181 // > @ 0x140918728 // // 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=4 struct cocos2d::CCAction *__fastcall EditLevelLayer::onPlay(__int64 a1) { struct cocos2d::CCAction *result; // rax __int64 v3; // rcx __int64 v4; // rax cocos2d::CCObject *v5; // rbx _QWORD *v6; // rbx __int64 v7; // rcx __int64 v8; // r8 __int64 v9; // r9 int v10; // ecx __int64 v11; // rbx struct cocos2d::CCFiniteTimeAction *v12; // rax struct cocos2d::CCAction *v13; // rax __int128 v14; // [rsp+50h] [rbp+17h] BYREF __int64 v15; // [rsp+60h] [rbp+27h] __int64 v16; // [rsp+68h] [rbp+2Fh] _BYTE v17[32]; // [rsp+70h] [rbp+37h] BYREF void *v18; // [rsp+B0h] [rbp+77h] void *v19; // [rsp+B8h] [rbp+7Fh] result = (struct cocos2d::CCAction *)cocos2d::CCDirector::sharedDirector(a1); if ( !*((_BYTE *)result + 176) && !*(_BYTE *)(a1 + 496) ) { v3 = *(_QWORD *)(a1 + 472); if ( *(_QWORD *)(v3 + 1648) && *(_QWORD *)(v3 + 1696) != (*(unsigned int *)(v3 + 860) | 0x400000000LL) ) GJGameLevel::clearPlatformerSave(); if ( *(_BYTE *)(a1 + 544) || !*(_QWORD *)(*(_QWORD *)(a1 + 472) + 1648LL) ) { EditLevelLayer::closeTextInputs(a1); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); *(_BYTE *)(a1 + 496) = 1; v6 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v18 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v6 = (_QWORD *)qword_14090BF60; } v7 = v6[69]; if ( v7 ) FMOD::ChannelControl::stop(v7); sub_14003EB60(v6 + 137); sub_14003EB60(v6 + 145); sub_14003EB60(v6 + 153); v14 = 0; *(_QWORD *)&v14 = sub_14003D460(0x20u); v15 = 16; v16 = 31; strcpy((char *)v14, "playSound_01.ogg"); v10 = qword_14090BF60; if ( !qword_14090BF60 ) { v19 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v10 = qword_14090BF60; } FMODAudioEngine::playEffect(v10, (__int64)&v14, v8, v9, 1050253722); EditLevelLayer::verifyLevelName(a1); v11 = cocos2d::CCCallFunc::create(a1, EditLevelLayer::playStep2); v12 = cocos2d::CCDelayTime::create(0.0); v13 = cocos2d::CCSequence::create(v12, v11, 0); return cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v13); } else { v14 = 0; v15 = 0; v16 = 0; *(_QWORD *)&v14 = sub_14003D460(0x60u); v15 = 91; v16 = 95; strcpy( (char *)v14, "There is a saved checkpoint for this level.\nDo you want to load it?"); v4 = sub_14003F4F0((__int64)v17, (__int64)&v14); v5 = FLAlertLayer::create( (int)a1 + 416, (int)"Load Save", v4, (__int64)"New Game", (__int64)"Load Save", 1136525312, 0, 0, 1065353216); sub_14003D310((__int64)&v14); FLAlertLayer::addCloseButton((__int64)v5); *((_BYTE *)v5 + 656) = 1; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 64LL))(v5, 11); return (struct cocos2d::CCAction *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v5 + 1064LL))(v5); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source