// // LevelInfoLayer::onClone from 0x49b220 to 0x49b2ce (174 bytes) // // 1 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x49bbcc // // 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:45 +0000 // int __fastcall LevelInfoLayer::onClone(GJGameLevel **this, cocos2d::CCObject *a2) { int result; // r0 int v4; // r4 GameManager *v5; // r0 GameLevelManager *v6; // r0 GameLevelManager *v7; // r0 GJGameLevel *NewLevel; // r6 _DWORD *v9; // r3 int v10; // r1 int v11; // r2 cocos2d::CCDirector *v12; // r0 int v13; // s15 cocos2d::CCDirector *v14; // r4 GJGameLevel *v15; // r1 float v16; // r0 cocos2d::CCScene *v17; // r2 cocos2d::CCScene *v18; // r1 result = LevelInfoLayer::shouldDownloadLevel((LevelInfoLayer *)this); if ( !result ) { v4 = *((unsigned __int8 *)this + 356); if ( !*((_BYTE *)this + 356) ) { v5 = (GameManager *)(*((int (__fastcall **)(GJGameLevel **, _DWORD))*this + 134))( this, *((unsigned __int8 *)this + 356)); *((_BYTE *)this + 356) = 1; v6 = (GameLevelManager *)GameManager::sharedState(v5); *((_DWORD *)v6 + 127) = 2; v7 = (GameLevelManager *)GameLevelManager::sharedState(v6); NewLevel = (GJGameLevel *)GameLevelManager::createNewLevel(v7); GJGameLevel::copyLevelInfo(NewLevel, *(this + 91)); v9 = *(this + 91); v10 = v9[203]; v11 = v9[204]; if ( v10 != v11 || (v10 = v9[67], v11 = v9[68], v10 != v11) ) v4 = v10 - v11; *((_DWORD *)NewLevel + 205) = v4; v12 = (cocos2d::CCDirector *)rand(); v13 = (int)(float)(vcvts_n_f32_s32((unsigned int)v12, 0x1Fu) * 1000.0); *((_DWORD *)NewLevel + 204) = v13; *((_DWORD *)NewLevel + 203) = v13 + v4; v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); v16 = COERCE_FLOAT(EditLevelLayer::scene(NewLevel, v15)); v18 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create((cocos2d::CCTransitionFade *)0x3F000000, v16, v17); return cocos2d::CCDirector::replaceScene(v14, v18); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source