cut some old savestate cruft

This commit is contained in:
nattthebear 2017-05-27 19:58:22 -04:00
parent 10d47d1ea8
commit 7071d74416
1 changed files with 2 additions and 38 deletions

View File

@ -201,10 +201,6 @@ namespace BizHawk.Client.Common
});
}
}
catch
{
return false;
}
finally
{
bl.Dispose();
@ -212,41 +208,9 @@ namespace BizHawk.Client.Common
return true;
}
else // text mode
else
{
if (Global.MovieSession.HandleMovieLoadState(path))
{
using (var reader = new StreamReader(path))
{
core.LoadStateText(reader);
while (true)
{
var str = reader.ReadLine();
if (str == null)
{
break;
}
if (str.Trim() == "")
{
continue;
}
var args = str.Split(' ');
if (args[0] == "Framebuffer" && Global.Emulator.HasVideoProvider())
{
Global.Emulator.AsVideoProvider().GetVideoBuffer().ReadFromHex(args[1]);
}
}
}
return true;
}
else
{
return false;
}
return false;
}
}
}