// // LevelListLayer::cloneList from 0x591c98 to 0x591d9c (260 bytes) // // 1 xrefs: // > LevelListLayer::FLAlert_Clicked @ 0x591e4a // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void LevelListLayer::cloneList(LevelListLayer *a1) { GameLevelManager *v2; // r0 GJLevelList *NewLevelList; // r8 GameLevelManager *v4; // r0 std::string *p_m_listDesc; // r1 int m_difficulty; // r3 GJLevelList *m_levelList; // r2 int m_original; // r3 cocos2d::CCDirector *v9; // r4 cocos2d::CCScene *v10; // r0 cocos2d::CCTransitionFade *v11; // r0 int v12; // [sp+4h] [bp-Ch] BYREF _BYTE v13[4]; // [sp+8h] [bp-8h] BYREF if ( !a1->m_exiting ) { ((void (__fastcall *)(LevelListLayer *))a1->setKeypadEnabled)(a1); a1->m_exiting = 1; GameManager::sharedState()->m_sceneEnum = 14; v2 = GameLevelManager::sharedState(); NewLevelList = GameLevelManager::createNewLevelList(v2); v4 = GameLevelManager::sharedState(); p_m_listDesc = &a1->m_levelList->m_listDesc; m_difficulty = a1->m_levelList->m_difficulty; v4->m_returnToLocalLevels = 1; NewLevelList->m_difficulty = m_difficulty; sub_775D40(&NewLevelList->m_listDesc, p_m_listDesc); GJLevelList::duplicateListLevels(NewLevelList); sub_775C20(&v12); if ( *(_DWORD *)(v12 - 12) <= 0x17u ) sub_774544((int)&v12, " 2"); sub_775C20(v13); sub_775D40(&NewLevelList->m_listName, v13); sub_774008(v13); m_levelList = a1->m_levelList; m_original = m_levelList->m_original; if ( !m_original ) m_original = m_levelList->m_listID; NewLevelList->m_original = m_original; v9 = cocos2d::CCDirector::sharedDirector(); v10 = LevelListLayer::scene(NewLevelList); v11 = cocos2d::CCTransitionFade::create(0.5, v10); cocos2d::CCDirector::replaceScene(v9, v11); sub_774008(&v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source