cleanup: remove extra start/end game msgs from spectator server (#23)

This commit is contained in:
Vlad Firoiu 2024-06-01 20:31:25 -04:00 committed by GitHub
commit 10bc950348
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());
@ -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;