From 7071d74416f159b92463c09336e00495d8a2e160 Mon Sep 17 00:00:00 2001 From: nattthebear Date: Sat, 27 May 2017 19:58:22 -0400 Subject: [PATCH] cut some old savestate cruft --- BizHawk.Client.Common/SavestateManager.cs | 40 ++--------------------- 1 file changed, 2 insertions(+), 38 deletions(-) diff --git a/BizHawk.Client.Common/SavestateManager.cs b/BizHawk.Client.Common/SavestateManager.cs index 24a0783c46..68efe213d6 100644 --- a/BizHawk.Client.Common/SavestateManager.cs +++ b/BizHawk.Client.Common/SavestateManager.cs @@ -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; } } }