// // EditLevelLayer::onPlay from 0x4a02b4 to 0x4a042a (374 bytes) // // 2 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x4a2230 // > EditLevelLayer::keyDown @ 0x4a2308 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:49:49 +0000 // int __fastcall EditLevelLayer::onPlay(EditLevelLayer *this, cocos2d::CCObject *a2) { int result; // r0 int v4; // r0 int v5; // r3 int v6; // r3 int v7; // r2 int v8; // r3 int v9; // r3 FMODAudioEngine *v10; // r0 FMODAudioEngine *v11; // r0 char **v12; // r0 FMODAudioEngine *v13; // r7 int v14; // r1 int v15; // r2 int v16; // r3 float v17; // r1 cocos2d::CCSequence *v18; // r7 cocos2d::CCFiniteTimeAction *v19; // r0 cocos2d::CCAction *v20; // r0 int *v21; // r4 int v22; // [sp+10h] [bp-14h] BYREF int v23; // [sp+14h] [bp-10h] int v24; // [sp+18h] [bp-Ch] result = cocos2d::CCDirector::sharedDirector(this); if ( !*(_BYTE *)(result + 140) && !*((_BYTE *)this + 360) ) { v4 = *((_DWORD *)this + 87); v5 = *(unsigned __int8 *)(v4 + 1148); if ( (v5 & 1) != 0 ) v6 = *(_DWORD *)(v4 + 1152); else v6 = v5 >> 1; if ( v6 && (*(_DWORD *)(v4 + 1172) != *(_DWORD *)(v4 + 612) || *(_DWORD *)(v4 + 1176) != 4) ) GJGameLevel::clearPlatformerSave((GJGameLevel *)v4); if ( !*((_BYTE *)this + 384) && ((v7 = *((_DWORD *)this + 87), v8 = *(unsigned __int8 *)(v7 + 1148), (v8 & 1) != 0) ? (v9 = *(_DWORD *)(v7 + 1152)) : (v9 = v8 >> 1), v9) ) { v22 = 0; v23 = 0; v24 = 0; std::string::__init( &v22, "There is a saved checkpoint for this level.\nDo you want to load it?", 0x5Bu); v21 = FLAlertLayer::create( (int)this + 320, (cocos2d::CCLabelBMFont *)"Load Save", (int)&v22, (ButtonSprite *)"New Game", (ButtonSprite *)"Load Save", 380.0); std::string::~string((int)&v22); FLAlertLayer::addCloseButton((const cocos2d::CCPoint **)v21); *((_BYTE *)v21 + 516) = 1; (*(void (__fastcall **)(int *, int))(*v21 + 36))(v21, 11); return (*(int (__fastcall **)(int *))(*v21 + 656))(v21); } else { EditLevelLayer::closeTextInputs((cocos2d::CCArray **)this); v10 = (FMODAudioEngine *)(*(int (__fastcall **)(EditLevelLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0); *((_BYTE *)this + 360) = 1; v11 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v10); v12 = FMODAudioEngine::stopAllMusic(v11, 1); v22 = 0; v23 = 0; v24 = 0; v13 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)v12); std::string::__init(&v22, "playSound_01.ogg", 0x10u); FMODAudioEngine::playEffect(v13, (int)&v22, 1065353216, 0, 1050253722); std::string::~string((int)&v22); EditLevelLayer::verifyLevelName(this, v14, v15, v16); v18 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(nullptr, v17); v19 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, EditLevelLayer::playStep2, 0); v20 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v18, v19, 0); return cocos2d::CCNode::runAction(this, v20); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source