//------------------------------------------------------------------------- void CCryLobbySessionHandler::JoinSessionFromConsole(CrySessionID session) { CGameLobby* pGameLobby = g_pGame->GetGameLobby(); if (pGameLobby) { pGameLobby->JoinServer(session, "JoinSessionFromConsole", CryMatchMakingInvalidConnectionUID, true); } }
void CUILobbyMP::JoinGame(int sessionID) { bool result = false; CGameLobby *pGameLobby = g_pGame->GetGameLobby(); CGameLobbyManager *pGameLobbyMgr = g_pGame->GetGameLobbyManager(); CSquadManager *pSquadMgr = g_pGame->GetSquadManager(); if(pGameLobbyMgr) { pGameLobbyMgr->SetMultiplayer(true); } if(pSquadMgr) { pSquadMgr->SetMultiplayer(true); } if(pGameLobby && m_FoundServers.size() > sessionID) result = pGameLobby->JoinServer(m_FoundServers[sessionID].m_id, m_FoundServers[sessionID].m_data.m_name, CryMatchMakingInvalidConnectionUID, false); return; }