Rewinder - small optimization to previous bugfix and rename misleading method name.

This commit is contained in:
jdpurcell 2015-01-17 20:53:01 +00:00
parent ede452700c
commit 40bfe91238
1 changed files with 7 additions and 3 deletions

View File

@ -159,7 +159,7 @@ namespace BizHawk.Client.Common
return;
}
RewindDelta();
RewindOne();
}
}
@ -334,7 +334,7 @@ namespace BizHawk.Client.Common
UpdateLastState(currentState);
}
private void RewindDelta()
private void RewindOne()
{
if (!Global.Emulator.HasSavestates()) return;
@ -344,7 +344,11 @@ namespace BizHawk.Client.Common
var fullstate = reader.ReadBoolean();
if (fullstate)
{
UpdateLastState(buf, 1, buf.Length - 1);
if (_rewindDeltaEnable)
{
UpdateLastState(buf, 1, buf.Length - 1);
}
Global.Emulator.AsStatable().LoadStateBinary(reader);
}
else