// // EditLevelLayer::onClone from 0x7f19b4 to 0x7f1a98 (228 bytes) // // 2 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x7f1b3c // > @ 0x4f0f0 // // 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:35 +0000 // __int64 __fastcall EditLevelLayer::onClone(GJGameLevel **this) { __int64 result; // x0 GameLevelManager *v3; // x0 GameLevelManager *v4; // x0 GJGameLevel *NewLevel; // x20 int v6; // w19 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x19 GJGameLevel *v9; // x1 AppDelegate *v10; // x0 cocos2d::CCScene *v11; // x1 cocos2d::CCScene *v12; // x0 result = *(unsigned __int8 *)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this) + 176); if ( !(_DWORD)result ) { result = *((unsigned __int8 *)this + 496); if ( !*((_BYTE *)this + 496) ) { (*((void (__fastcall **)(GJGameLevel **, _QWORD))*this + 134))(this, 0); *((_BYTE *)this + 496) = (unsigned __int8)&dword_0 + 1; v3 = (GameLevelManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 1)); *((_DWORD *)v3 + 177) = 2; v4 = (GameLevelManager *)GameLevelManager::sharedState(v3); NewLevel = (GJGameLevel *)GameLevelManager::createNewLevel(v4); GJGameLevel::copyLevelInfo(NewLevel, *(this + 59)); EditLevelLayer::verifyLevelName((EditLevelLayer *)this); if ( *((_DWORD *)*(this + 59) + 247) == *((_DWORD *)*(this + 59) + 248) ) v6 = 0; else v6 = *((_DWORD *)*(this + 59) + 247) - *((_DWORD *)*(this + 59) + 248); *((_DWORD *)NewLevel + 249) = v6; v7 = (cocos2d::CCDirector *)(unsigned int)(int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)NewLevel + 248) = (_DWORD)v7; *((_DWORD *)NewLevel + 247) = v6 + (_DWORD)v7; v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); v10 = EditLevelLayer::scene(NewLevel, v9); v12 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v10, 0.5, v11); return cocos2d::CCDirector::replaceScene(v8, v12); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source