Mute turbo now works with turbo toggle as well

This commit is contained in:
adelikat 2008-08-07 16:55:03 +00:00
parent 20998006a7
commit 4da1c36ead
1 changed files with 9 additions and 1 deletions

View File

@ -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)
{