mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
fix spectate functionality
This commit is contained in:
parent
8d75dc300c
commit
53bf282001
3 changed files with 4 additions and 2 deletions
|
@ -151,6 +151,9 @@ CEXISlippi::CEXISlippi(Core::System& system, const std::string current_file_name
|
|||
directCodes = std::make_unique<SlippiDirectCodes>("direct-codes.json");
|
||||
teamsCodes = std::make_unique<SlippiDirectCodes>("teams-codes.json");
|
||||
|
||||
// initialize the spectate server so we can connect without starting a game
|
||||
SlippiSpectateServer::getInstance();
|
||||
|
||||
generator = std::default_random_engine(Common::Timer::NowMs());
|
||||
|
||||
// Loggers will check 5 bytes, make sure we own that memory
|
||||
|
|
|
@ -262,7 +262,6 @@ private:
|
|||
|
||||
std::vector<u8> m_read_queue;
|
||||
std::unique_ptr<Slippi::SlippiGame> m_current_game = nullptr;
|
||||
SlippiSpectateServer* m_slippiserver = nullptr;
|
||||
SlippiMatchmaking::MatchSearchSettings last_search;
|
||||
SlippiMatchmaking::MatchmakeResult recent_mm_result;
|
||||
|
||||
|
|
|
@ -280,7 +280,7 @@ void SlippiSpectateServer::SlippicommSocketThread(void)
|
|||
|
||||
ENetAddress server_address = {0};
|
||||
server_address.host = ENET_HOST_ANY;
|
||||
server_address.port = Config::Get(Config::SLIPPI_ENABLE_SPECTATOR);
|
||||
server_address.port = Config::Get(Config::SLIPPI_SPECTATOR_LOCAL_PORT);
|
||||
|
||||
// Create the spectator server
|
||||
// This call can fail if the system is already listening on the specified port
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue