diff --git a/src/BizHawk.Client.Common/Api/Classes/MemorySaveStateApi.cs b/src/BizHawk.Client.Common/Api/Classes/MemorySaveStateApi.cs index 69eefd7b20..d8a89a29a2 100644 --- a/src/BizHawk.Client.Common/Api/Classes/MemorySaveStateApi.cs +++ b/src/BizHawk.Client.Common/Api/Classes/MemorySaveStateApi.cs @@ -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(); } diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs index b45b689935..1876f2c869 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs @@ -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(),