From b6f1bae7e1cf76cfabe713185bb6b8a2186fdcfc Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Sun, 13 Aug 2023 21:14:35 +0200 Subject: [PATCH] Revert erroneous change to bk2 loading for now fixes 0af4d125b2dca0619be7e634a2759a3da14b9547 --- src/BizHawk.Client.Common/movie/bk2/Bk2Movie.IO.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Client.Common/movie/bk2/Bk2Movie.IO.cs b/src/BizHawk.Client.Common/movie/bk2/Bk2Movie.IO.cs index 31ca8f137e..4441908e01 100644 --- a/src/BizHawk.Client.Common/movie/bk2/Bk2Movie.IO.cs +++ b/src/BizHawk.Client.Common/movie/bk2/Bk2Movie.IO.cs @@ -160,8 +160,9 @@ namespace BizHawk.Client.Common bl.GetLump(BinaryStateLump.Framebuffer, false, br => { - QuickBmpFile.LoadAuto(br.BaseStream, out var bmp); - SavestateFramebuffer = bmp.GetVideoBuffer(); + var fb = br.ReadAllBytes(); + SavestateFramebuffer = new int[fb.Length / sizeof(int)]; + Buffer.BlockCopy(fb, 0, SavestateFramebuffer, 0, fb.Length); }); } else if (StartsFromSaveRam)