dont savestate at all if rewind is completely disabled

This commit is contained in:
zeromus 2015-11-08 22:18:04 -06:00
parent 7702ae5f3c
commit 2bf48e3c86
1 changed files with 13 additions and 0 deletions

View File

@ -58,9 +58,22 @@ namespace BizHawk.Client.Common
get { return _rewindFrequency; }
}
bool IsRewindEnabledAtAll
{
get
{
if (!Global.Config.RewindEnabledLarge && !Global.Config.RewindEnabledMedium && !Global.Config.RewindEnabledSmall)
return false;
else return true;
}
}
// TOOD: this should not be parameterless?! It is only possible due to passing a static context in
public void CaptureRewindState()
{
if (!IsRewindEnabledAtAll)
return;
if (Global.Emulator.HasSavestates())
{
if (_rewindImpossible)