From 05ffecbf4e9bc5cee7579faaab4fccbeed1eeb54 Mon Sep 17 00:00:00 2001 From: TurtleMan64 Date: Sat, 21 Jul 2018 17:28:02 -0700 Subject: [PATCH] Saves resource index on close --- SonicInputDisplay.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SonicInputDisplay.cs b/SonicInputDisplay.cs index 5b8e363..478cbc2 100644 --- a/SonicInputDisplay.cs +++ b/SonicInputDisplay.cs @@ -42,7 +42,7 @@ public static void Main() theDisplay.MaximizeBox = false; theDisplay.FormBorderStyle = FormBorderStyle.FixedSingle; theDisplay.StartPosition = FormStartPosition.CenterScreen; - theDisplay.BackColor = Color.FromArgb(1, 1, 1); //Almost, but not exactly black + theDisplay.BackColor = Color.FromArgb(2, 2, 2); //Almost, but not exactly black theDisplay.Text = "Searching for game..."; //Thread to handle the window @@ -50,6 +50,7 @@ public static void Main() { Thread.CurrentThread.IsBackground = true; theDisplay.ShowDialog(); + theDisplay.saveIndex(); loop = false; }).Start(); @@ -68,7 +69,6 @@ public static void Main() theDisplay.Refresh(); System.Threading.Thread.Sleep(14); } - } private static void setValuesFromSA2()