aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS
diff options
context:
space:
mode:
authormpnico <mpnico@gmail.com>2021-09-18 14:31:44 +0200
committerGitHub <noreply@github.com>2021-09-18 14:31:44 +0200
commitfe9d5a1981cfe43c4535b7473064c9858addb3b5 (patch)
tree5e1f8de6b8fc5f8ce27aceecae737e1a0420e683 /Ryujinx.HLE/HOS
parentd327e809c9c9d1f4c035c50bf6315eea83ce0147 (diff)
Fix problems added by Pause (#2645)
* Disable Pause/Resume menu instead of trying to hide them * Fix Resume menu being active before renderer starts * Fix emulator not being able to close properly
Diffstat (limited to 'Ryujinx.HLE/HOS')
-rw-r--r--Ryujinx.HLE/HOS/Horizon.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Horizon.cs b/Ryujinx.HLE/HOS/Horizon.cs
index 76ab1bc4..877bb389 100644
--- a/Ryujinx.HLE/HOS/Horizon.cs
+++ b/Ryujinx.HLE/HOS/Horizon.cs
@@ -386,10 +386,14 @@ namespace Ryujinx.HLE.HOS
_isDisposed = true;
// "Soft" stops AudioRenderer and AudioManager to avoid some sound between resume and stop.
- AudioRendererManager.StopSendingCommands();
- AudioManager.StopUpdates();
+ if (IsPaused)
+ {
+ AudioManager.StopUpdates();
+
+ TogglePauseEmulation(false);
- TogglePauseEmulation(false);
+ AudioRendererManager.StopSendingCommands();
+ }
KProcess terminationProcess = new KProcess(KernelContext);
KThread terminationThread = new KThread(KernelContext);