Skip to content

Commit

Permalink
Remove spurious start/end game messages from spectator server.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfi1 committed Jun 1, 2024
1 parent 90f00d3 commit 87e0ee5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Source/Core/Core/Slippi/SlippiSpectate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ void SlippiSpectateServer::write(u8* payload, u32 length)
// CALLED FROM DOLPHIN MAIN THREAD
void SlippiSpectateServer::startGame()
{
if (isSpectatorEnabled())
{
m_event_queue.Push("START_GAME");
}
json start_game_message;
start_game_message["type"] = "start_game";
m_event_queue.Push(start_game_message.dump());
Expand All @@ -49,10 +45,6 @@ void SlippiSpectateServer::startGame()
// CALLED FROM DOLPHIN MAIN THREAD
void SlippiSpectateServer::endGame(bool dolphin_closed)
{
if (isSpectatorEnabled())
{
m_event_queue.Push("END_GAME");
}
json end_game_message;
end_game_message["type"] = "end_game";
end_game_message["dolphin_closed"] = dolphin_closed;
Expand Down

0 comments on commit 87e0ee5

Please sign in to comment.