// // EditLevelLayer::onEdit from 0x4a044c to 0x4a050e (194 bytes) // // 1 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x4a21f6 // // 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::onEdit(LevelEditorLayer **this, cocos2d::CCObject *a2) { int result; // r0 unsigned int v4; // r5 GameManager *v5; // r0 int v6; // r1 int v7; // r2 FMODAudioEngine *v8; // r0 int v9; // r9 cocos2d::CCDirector *v10; // r0 cocos2d::CCDirector *v11; // r5 bool v12; // r2 AppDelegate *v13; // r0 cocos2d::CCScene *v14; // r2 cocos2d::CCScene *v15; // r0 unsigned __int8 v16[12]; // [sp+18h] [bp-14h] BYREF result = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); if ( !*(_BYTE *)(result + 140) ) { v4 = *((unsigned __int8 *)this + 360); if ( !*((_BYTE *)this + 360) ) { EditLevelLayer::closeTextInputs(this); v5 = (GameManager *)(*((int (__fastcall **)(LevelEditorLayer **, unsigned int))*this + 134))(this, v4); *((_BYTE *)this + 360) = 1; *(_DWORD *)(GameManager::sharedState(v5) + 508) = 3; v8 = EditLevelLayer::verifyLevelName((EditLevelLayer *)this, v6, v7, 3); v9 = FMODAudioEngine::sharedEngine(v8); GJGameLevel::getAudioFileName((GJGameLevel *)v16); FMODAudioEngine::loadMusic(v9, v16, 1.0, 0, 1.0, 1, v4, v4, v4); v10 = (cocos2d::CCDirector *)std::string::~string((int)v16); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); v13 = LevelEditorLayer::scene(*(this + 87), nullptr, v12); v15 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create( (cocos2d::CCTransitionFade *)0x3F000000, *(float *)&v13, v14); return cocos2d::CCDirector::replaceScene(v11, v15); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source