// // LevelInfoLayer::onClone from 0x10002e1b8 to 0x10002e294 (220 bytes) // // 1 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x10002e6ac // // 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:57:29 +0000 // __int64 __fastcall LevelInfoLayer::onClone(__int64 a1) { __int64 result; // x0 __int64 v3; // x0 __int64 v4; // x0 __int64 v5; // x0 _DWORD *NewLevel; // x20 _DWORD *v7; // x8 int v8; // w9 int v9; // w10 int v10; // w19 __int64 v11; // x0 float v12; // s0 int v13; // w19 __int64 v14; // x0 void *v15; // x1 result = LevelInfoLayer::shouldDownloadLevel(a1); if ( (result & 1) == 0 && (*(_BYTE *)(a1 + 488) & 1) == 0 ) { v3 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); *(_BYTE *)(a1 + 488) = 1; v4 = GameManager::sharedState(v3); *(_DWORD *)(v4 + 708) = 2; v5 = GameLevelManager::sharedState(v4); NewLevel = (_DWORD *)GameLevelManager::createNewLevel(v5); GJGameLevel::copyLevelInfo(NewLevel, *(_QWORD *)(a1 + 504)); v7 = *(_DWORD **)(a1 + 504); v8 = v7[247]; v9 = v7[248]; v10 = v8 - v9; if ( v8 == v9 ) v10 = v7[82] - v7[83]; NewLevel[249] = v10; v11 = rand(); v12 = vcvts_n_f32_s32(v11, 0x1Fu) * 1000.0; NewLevel[248] = (int)v12; NewLevel[247] = v10 + (int)v12; v13 = cocos2d::CCDirector::sharedDirector(v11); v14 = EditLevelLayer::scene(NewLevel); v15 = (void *)cocos2d::CCTransitionFade::create_1(v14, 0.5); return cocos2d::CCDirector::replaceScene(v13, v15); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source