// // LevelListLayer::cloneList from 0x6d9ae8 to 0x6d9bfa (274 bytes) // // 1 xrefs: // > LevelListLayer::FLAlert_Clicked @ 0x6d9c3e // // 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:57:09 +0000 // _BYTE *__fastcall LevelListLayer::cloneList(_BYTE *this) { _BYTE *v1; // r4 GameManager *v2; // r0 GameLevelManager *v3; // r0 GameLevelManager *v4; // r0 cocos2d::CCNode *NewLevelList; // r7 unsigned int v6; // r3 cocos2d::CCDirector *v7; // r0 int v8; // r2 int v9; // r3 cocos2d::CCDirector *v10; // r4 GJLevelList *v11; // r1 AppDelegate *v12; // r0 cocos2d::CCScene *v13; // r2 cocos2d::CCScene *v14; // r0 int v15[3]; // [sp+4h] [bp-1Ch] BYREF int v16[3]; // [sp+10h] [bp-10h] BYREF v1 = this; if ( !*(this + 660) ) { v2 = (GameManager *)(*(int (__fastcall **)(_BYTE *))(*(_DWORD *)this + 536))(this); v1[660] = 1; v3 = (GameLevelManager *)GameManager::sharedState(v2); *((_DWORD *)v3 + 127) = 14; v4 = (GameLevelManager *)GameLevelManager::sharedState(v3); NewLevelList = GameLevelManager::createNewLevelList(v4); *(_BYTE *)(GameLevelManager::sharedState(NewLevelList) + 816) = 1; *((_DWORD *)NewLevelList + 73) = *(_DWORD *)(*((_DWORD *)v1 + 160) + 292); std::string::operator=((unsigned __int8 *)NewLevelList + 384, (unsigned __int8 *)(*((_DWORD *)v1 + 160) + 384)); GJLevelList::duplicateListLevels(NewLevelList, *((GJLevelList **)v1 + 160)); std::string::basic_string(v15, *((_DWORD *)v1 + 160) + 348); if ( (v15[0] & 1) != 0 ) v6 = v15[1]; else v6 = (int)LOBYTE(v15[0]) >> 1; if ( v6 <= 0x17 ) std::string::append(v15, " 2"); std::string::basic_string(v16, (int)v15); std::string::operator=((unsigned __int8 *)NewLevelList + 348, (unsigned __int8 *)v16); v7 = (cocos2d::CCDirector *)std::string::~string((int)v16); v8 = *((_DWORD *)v1 + 160); v9 = *(_DWORD *)(v8 + 312); if ( !v9 ) v9 = *(_DWORD *)(v8 + 276); *((_DWORD *)NewLevelList + 78) = v9; v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); v12 = LevelListLayer::scene(NewLevelList, v11); v14 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create( (cocos2d::CCTransitionFade *)0x3F000000, *(float *)&v12, v13); cocos2d::CCDirector::replaceScene(v10, v14); return (_BYTE *)std::string::~string((int)v15); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source