Fix bug with Mute Frame Advance
It will actually mute when you hold the Frame Advance button. Previously, the setting did nothing.
This commit is contained in:
parent
49d7f79ce5
commit
d3547b15d4
|
@ -2691,12 +2691,12 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
if (Global.ClientControls["Frame Advance"] || PressFrameAdvance || HoldFrameAdvance)
|
if (Global.ClientControls["Frame Advance"] || PressFrameAdvance || HoldFrameAdvance)
|
||||||
{
|
{
|
||||||
|
_runloopFrameadvance = true;
|
||||||
// handle the initial trigger of a frame advance
|
// handle the initial trigger of a frame advance
|
||||||
if (_frameAdvanceTimestamp == 0)
|
if (_frameAdvanceTimestamp == 0)
|
||||||
{
|
{
|
||||||
PauseEmulator();
|
PauseEmulator();
|
||||||
runFrame = true;
|
runFrame = true;
|
||||||
_runloopFrameadvance = true;
|
|
||||||
_frameAdvanceTimestamp = currentTimestamp;
|
_frameAdvanceTimestamp = currentTimestamp;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2804,8 +2804,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
if (Global.Config.SoundEnabledNormal)
|
if (Global.Config.SoundEnabledNormal)
|
||||||
atten = Global.Config.SoundVolume / 100.0f;
|
atten = Global.Config.SoundVolume / 100.0f;
|
||||||
|
|
||||||
if (_runloopFrameadvance && !Global.Config.MuteFrameAdvance)
|
if (_runloopFrameadvance && Global.Config.MuteFrameAdvance)
|
||||||
{
|
{
|
||||||
atten = 0;
|
atten = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue