SavestateManager - make a public method private
This commit is contained in:
parent
88b038f24e
commit
28d859e2d8
|
@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue