From 0b3e25fcfd568d076133a51bdb2d2247180faf3d Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 14 Oct 2014 13:17:02 +0000 Subject: [PATCH] InputRoll - methods for saving and loading column info, not wired up yet --- .../tools/TAStudio/InputRoll.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs index 5f16b8b11b..7b361e046e 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/InputRoll.cs @@ -1,12 +1,13 @@ using System; +using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Windows.Forms; +using BizHawk.Client.Common; using BizHawk.Client.EmuHawk.CustomControls; -using System.Collections; namespace BizHawk.Client.EmuHawk { @@ -16,7 +17,7 @@ namespace BizHawk.Client.EmuHawk public class InputRoll : Control { private readonly GDIRenderer Gdi; - private readonly RollColumns _columns = new RollColumns(); + private RollColumns _columns = new RollColumns(); private readonly List SelectedItems = new List(); private readonly VScrollBar VBar; @@ -422,7 +423,16 @@ namespace BizHawk.Client.EmuHawk public string UserSettingsSerialized() { - return string.Empty; // TODO + // TODO: More than just columns + var settings = ConfigService.SaveWithType(_columns); + return settings; + } + + public void LoadSettingsSerialized(string settingsJson) + { + //TODO: more than just columns + var settings = ConfigService.LoadWithType(settingsJson); + _columns = (RollColumns)settings; } ///