Tastudio - rework StateHistory integrity check to not use HasState() removing any possibility of a cache mismatch causing a false positive of a bad savestate
This commit is contained in:
parent
9cca7c4a31
commit
4a58ff2a0c
|
@ -788,10 +788,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
MainForm.FrameAdvance();
|
||||
|
||||
if (CurrentTasMovie.TasStateManager.HasState(Emulator.Frame))
|
||||
byte[] greenZone = CurrentTasMovie.TasStateManager[Emulator.Frame];
|
||||
if (greenZone.Length > 0)
|
||||
{
|
||||
byte[] state = StatableEmulator.CloneSavestate();
|
||||
byte[] greenZone = CurrentTasMovie.TasStateManager[Emulator.Frame];
|
||||
|
||||
if (!state.SequenceEqual(greenZone))
|
||||
{
|
||||
|
@ -805,6 +805,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
File.WriteAllBytes(path, greenZone);
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue