// // EditLevelLayer::onClone from 0x100112490 to 0x100112568 (216 bytes) // // 1 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x100112290 // // 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 10:59:09 +0000 // __int64 __fastcall EditLevelLayer::onClone(__int64 a1) { __int64 result; // x0 __int64 v3; // x0 _DWORD *NewLevel; // x20 int v5; // w19 __int64 v6; // x0 float v7; // s0 int v8; // w19 __int64 v9; // x0 void *v10; // x1 result = cocos2d::CCDirector::sharedDirector(a1); if ( (*(_BYTE *)(result + 176) & 1) == 0 && (*(_BYTE *)(a1 + 496) & 1) == 0 ) { v3 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); *(_BYTE *)(a1 + 496) = 1; *(_DWORD *)(GameManager::sharedState(v3) + 708) = 2; GameLevelManager::sharedState(); NewLevel = (_DWORD *)GameLevelManager::createNewLevel(); GJGameLevel::copyLevelInfo((__int64)NewLevel, *(_QWORD *)(a1 + 472)); EditLevelLayer::verifyLevelName(a1); v5 = *(_DWORD *)(*(_QWORD *)(a1 + 472) + 988LL) - *(_DWORD *)(*(_QWORD *)(a1 + 472) + 992LL); NewLevel[249] = v5; v6 = rand(); v7 = vcvts_n_f32_s32(v6, 0x1Fu) * 1000.0; NewLevel[248] = (int)v7; NewLevel[247] = v5 + (int)v7; v8 = cocos2d::CCDirector::sharedDirector(v6); v9 = EditLevelLayer::scene((__int64)NewLevel); v10 = (void *)cocos2d::CCTransitionFade::create_1(v9, 0.5); return cocos2d::CCDirector::replaceScene(v8, v10); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source