From da8199160d44301ebed05fce180bd618ec07f76f Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 16 Feb 2020 13:21:28 -0600 Subject: [PATCH] GGHawkLink - opt out of custom text states --- .../Sega/GGHawkLink/GGHawkLink.IStatable.cs | 20 +++---------------- .../Consoles/Sega/GGHawkLink/GGHawkLink.cs | 4 ++-- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/GGHawkLink/GGHawkLink.IStatable.cs b/BizHawk.Emulation.Cores/Consoles/Sega/GGHawkLink/GGHawkLink.IStatable.cs index 2d466f4408..97c3d4a219 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sega/GGHawkLink/GGHawkLink.IStatable.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sega/GGHawkLink/GGHawkLink.IStatable.cs @@ -5,24 +5,10 @@ using BizHawk.Emulation.Common; namespace BizHawk.Emulation.Cores.Sega.GGHawkLink { - public partial class GGHawkLink : ITextStatable + public partial class GGHawkLink : IStatable { - private readonly ITextStatable _lStates; - private readonly ITextStatable _rStates; - - public void SaveStateText(TextWriter writer) - { - _lStates.SaveStateText(writer); - _rStates.SaveStateText(writer); - SyncState(new Serializer(writer)); - } - - public void LoadStateText(TextReader reader) - { - _lStates.LoadStateText(reader); - _rStates.LoadStateText(reader); - SyncState(new Serializer(reader)); - } + private readonly IStatable _lStates; + private readonly IStatable _rStates; public void SaveStateBinary(BinaryWriter bw) { diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/GGHawkLink/GGHawkLink.cs b/BizHawk.Emulation.Cores/Consoles/Sega/GGHawkLink/GGHawkLink.cs index d88f281be0..d1db1e6918 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sega/GGHawkLink/GGHawkLink.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sega/GGHawkLink/GGHawkLink.cs @@ -61,8 +61,8 @@ namespace BizHawk.Emulation.Cores.Sega.GGHawkLink L.stand_alone = false; R.stand_alone = false; - _lStates = (ITextStatable)L.ServiceProvider.GetService(); - _rStates = (ITextStatable)R.ServiceProvider.GetService(); + _lStates = L.ServiceProvider.GetService(); + _rStates = R.ServiceProvider.GetService(); } public void HardReset()