From 11cab1c68d38c2073feb7c263e46e3f263c6799d Mon Sep 17 00:00:00 2001 From: FunctionalDragon Date: Mon, 27 Feb 2017 15:34:19 +0100 Subject: [PATCH] Send stop message before saving recording When recording during netplay, the stop message was only sent after you have chosen a filename for the replay, causing the other player(s) to freeze for a few seconds. This takes care of the annoyance. --- Source/Core/DolphinWX/FrameTools.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index c98297a421..3905c75984 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -881,15 +881,15 @@ void CFrame::DoStop() Core::SetState(state); } + if (NetPlayDialog::GetNetPlayClient()) + NetPlayDialog::GetNetPlayClient()->Stop(); + // TODO: Show the author/description dialog here if (Movie::IsRecordingInput()) DoRecordingSave(); if (Movie::IsMovieActive()) Movie::EndPlayInput(false); - if (NetPlayDialog::GetNetPlayClient()) - NetPlayDialog::GetNetPlayClient()->Stop(); - if (!m_tried_graceful_shutdown && UICommon::TriggerSTMPowerEvent()) { m_tried_graceful_shutdown = true;