// // EditLevelLayer::onTest from 0x7edffc to 0x7ee1e0 (484 bytes) // // 1 xrefs: // > @ 0x4ee20 // // This function is hookable on this platform (idp: arm, 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 12:54:33 +0000 // __int64 __fastcall EditLevelLayer::onTest(EditLevelLayer *this, cocos2d::CCObject *a2) { __int64 v3; // x0 __int64 v4; // x2 GameManager *v5; // x0 cocos2d::CCDirector *PersistentCheckpoint; // x0 cocos2d::CCTransitionFade *v7; // x21 cocos2d::CCDirector *v8; // x20 cocos2d::CCScene *v9; // x1 cocos2d::CCScene *v10; // x0 __int64 v12; // x1 FLAlertLayer *v13; // x20 __int64 v14; // x2 cocos2d::CCArray *v15; // x0 __int64 v16; // x0 __int64 v17[2]; // [xsp+30h] [xbp+30h] BYREF void *v18; // [xsp+40h] [xbp+40h] if ( !*(_BYTE *)(cocos2d::CCDirector::sharedDirector(_stack_chk_guard) + 176) ) { v3 = *((_QWORD *)this + 59); v4 = *(_BYTE *)(v3 + 1472) >> 1; if ( (*(_BYTE *)(v3 + 1472) & 1) != 0 ) v4 = *(_QWORD *)(v3 + 1480); if ( v4 && (*(_DWORD *)(v3 + 1520) != *(_DWORD *)(v3 + 788) || *(_DWORD *)(v3 + 1524) != 4) ) GJGameLevel::clearPlatformerSave((GJGameLevel *)v3); if ( *((_BYTE *)this + 536) ) goto LABEL_8; v12 = *(_BYTE *)(*((_QWORD *)this + 59) + 1472LL) >> 1; if ( (*(_BYTE *)(*((_QWORD *)this + 59) + 1472LL) & 1) != 0 ) v12 = *(_QWORD *)(*((_QWORD *)this + 59) + 1480LL); if ( !v12 ) { LABEL_8: v5 = (GameManager *)EditLevelLayer::closeTextInputs((cocos2d::CCArray **)this); *(_DWORD *)(GameManager::sharedState(v5) + 708) = 3; PersistentCheckpoint = PlayLayer::scene(*((PlayLayer **)this + 59), nullptr); v7 = PersistentCheckpoint; if ( *((_BYTE *)this + 536) ) { v15 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCDirector *))(*(_QWORD *)PersistentCheckpoint + 488LL))(PersistentCheckpoint); v16 = cocos2d::CCArray::objectAtIndex(v15, 0); PersistentCheckpoint = (cocos2d::CCDirector *)PlayLayer::loadPersistentCheckpoint( v16, *((_QWORD *)this + 59) + 1472LL); *((_BYTE *)this + 536) = 0; } v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(PersistentCheckpoint); v10 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v7, 0.5, v9); cocos2d::CCDirector::replaceScene(v8, v10); } else { v17[0] = 0; v17[1] = 0; v18 = nullptr; std::string::__init( v17, "There is a saved checkpoint for this level.\nDo you want to load it?", 0x5Bu); v13 = (FLAlertLayer *)FLAlertLayer::create( (__int64)this + 416, (cocos2d::CCLabelBMFont *)"Load Save", (char *)v17, (ButtonSprite *)"New Game", (ButtonSprite *)"Load Save", 380.0); if ( (v17[0] & 1) != 0 ) operator delete(v18); FLAlertLayer::addCloseButton(v13); v14 = *(_QWORD *)v13; *((_BYTE *)v13 + 656) = 1; (*(void (__fastcall **)(FLAlertLayer *, __int64))(v14 + 72))(v13, 11); (*(void (__fastcall **)(FLAlertLayer *))(*(_QWORD *)v13 + 1312LL))(v13); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source