NES - save framebuffer to savestates in the same manner as other cores

This commit is contained in:
adelikat 2012-08-25 18:18:05 +00:00
parent 6cec0f0182
commit cca1396fad
1 changed files with 4 additions and 5 deletions

View File

@ -2159,11 +2159,8 @@ namespace BizHawk.MultiClient
HandleMovieSaveState(writer);
if (Global.Config.SaveScreenshotWithStates)
{
if (!(Global.Emulator is NES)) //NES saves the video buffer on its own so it does not need to do this
{
writer.Write("Framebuffer ");
Global.Emulator.VideoProvider.GetVideoBuffer().SaveAsHex(writer);
}
writer.Write("Framebuffer ");
Global.Emulator.VideoProvider.GetVideoBuffer().SaveAsHex(writer);
}
writer.Close();
@ -2214,7 +2211,9 @@ namespace BizHawk.MultiClient
string[] args = str.Split(' ');
if (args[0] == "Framebuffer")
{
Global.Emulator.VideoProvider.GetVideoBuffer().ReadFromHex(args[1]);
}
}
reader.Close();