remove some usages of SavestateBinary() with the CloneSavestate() extension method

This commit is contained in:
adelikat 2020-08-05 20:50:46 -05:00
parent 2a4cba4f7e
commit a93a94aead
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ namespace BizHawk.Client.Common
public string SaveCoreStateToMemory()
{
var guid = Guid.NewGuid();
_memorySavestates.Add(guid, (byte[]) StatableCore.SaveStateBinary().Clone());
_memorySavestates.Add(guid, StatableCore.CloneSavestate());
return guid.ToString();
}

View File

@ -175,7 +175,7 @@ namespace BizHawk.Client.EmuHawk
return new TasBranch
{
Frame = Tastudio.Emulator.Frame,
CoreData = (byte[])Tastudio.StatableEmulator.SaveStateBinary().Clone(),
CoreData = Tastudio.StatableEmulator.CloneSavestate(),
InputLog = Movie.GetLogEntries().Clone(),
CoreFrameBuffer = MainForm.MakeScreenshotImage(),
OSDFrameBuffer = MainForm.CaptureOSD(),