diff --git a/src/drivers/win/input.cpp b/src/drivers/win/input.cpp index 74ffd4e6..b9221ed0 100644 --- a/src/drivers/win/input.cpp +++ b/src/drivers/win/input.cpp @@ -1482,13 +1482,13 @@ void FCEUD_TurboOn (void) tempwinsync = winsync; //Store winsync setting winsync = 0; //turn off winsync for turbo (so that turbo can function even with VBlank sync methods turbo = true; - if (muteTurbo) TrashSound(); + if (muteTurbo && soundo) TrashSound(); } void FCEUD_TurboOff (void) { winsync = tempwinsync; //Restore winsync setting turbo = false; - if (muteTurbo) InitSound(); + if (muteTurbo && soundo) InitSound(); } void FCEUD_TurboToggle(void) { @@ -1500,7 +1500,7 @@ void FCEUD_TurboToggle(void) } turbo = !turbo; - if (muteTurbo & !soundo) + if (muteTurbo && soundo) { if (turbo) TrashSound(); if (!turbo) InitSound(); diff --git a/src/fceu.cpp b/src/fceu.cpp index 4242acfa..cc8c9aa3 100644 --- a/src/fceu.cpp +++ b/src/fceu.cpp @@ -570,7 +570,7 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski } AutoFire(); - if(!EnableAutosave) UpdateAutosave(); + UpdateAutosave(); #ifdef _S9XLUA_H FCEU_LuaFrameBoundary(); @@ -856,9 +856,9 @@ static int AutosaveCounter = 0; void UpdateAutosave(void) { - /*if(!EnableAutosave) + if(!EnableAutosave) return; - */ + char * f; AutosaveCounter = (AutosaveCounter + 1) % 256; if(AutosaveCounter == 0)