From 4da1c36ead502564f4bf97eb2beede2f2aa77b7c Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 7 Aug 2008 16:55:03 +0000 Subject: [PATCH] Mute turbo now works with turbo toggle as well --- src/drivers/win/input.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/drivers/win/input.cpp b/src/drivers/win/input.cpp index 4d9d3039..44a842ad 100644 --- a/src/drivers/win/input.cpp +++ b/src/drivers/win/input.cpp @@ -1452,7 +1452,15 @@ void FCEUD_TurboOff (void) turbo = false; if (muteTurbo) InitSound(); } -void FCEUD_TurboToggle(void) { turbo = !turbo; } +void FCEUD_TurboToggle(void) +{ + turbo = !turbo; + if (muteTurbo) + { + if (turbo) TrashSound(); + if (!turbo) InitSound(); + } +} void FCEUI_UseInputPreset(int preset) {