SavestateManager - make a public method private

This commit is contained in:
adelikat 2020-05-18 11:59:25 -05:00
parent 88b038f24e
commit 28d859e2d8
1 changed files with 31 additions and 31 deletions

View File

@ -95,37 +95,6 @@ namespace BizHawk.Client.Common
}
}
public static void PopulateFramebuffer(BinaryReader br)
{
if (!Global.Emulator.HasVideoProvider())
{
return;
}
try
{
using (new SimpleTime("Load Framebuffer"))
{
QuickBmpFile.Load(Global.Emulator.AsVideoProvider(), br.BaseStream);
}
}
catch
{
var buff = Global.Emulator.AsVideoProvider().GetVideoBuffer();
try
{
for (int i = 0; i < buff.Length; i++)
{
int j = br.ReadInt32();
buff[i] = j;
}
}
catch (EndOfStreamException)
{
}
}
}
public static bool LoadStateFile(IEmulator emulator, string path)
{
var core = emulator.AsStatable();
@ -201,5 +170,36 @@ namespace BizHawk.Client.Common
return false;
}
private static void PopulateFramebuffer(BinaryReader br)
{
if (!Global.Emulator.HasVideoProvider())
{
return;
}
try
{
using (new SimpleTime("Load Framebuffer"))
{
QuickBmpFile.Load(Global.Emulator.AsVideoProvider(), br.BaseStream);
}
}
catch
{
var buff = Global.Emulator.AsVideoProvider().GetVideoBuffer();
try
{
for (int i = 0; i < buff.Length; i++)
{
int j = br.ReadInt32();
buff[i] = j;
}
}
catch (EndOfStreamException)
{
}
}
}
}
}