Skip to content

Commit

Permalink
Saves resource index on close
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleMan64 authored Jul 22, 2018
1 parent 9a02f99 commit 05ffecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SonicInputDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ 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
new Thread(() =>
{
Thread.CurrentThread.IsBackground = true;
theDisplay.ShowDialog();
theDisplay.saveIndex();
loop = false;
}).Start();

Expand All @@ -68,7 +69,6 @@ public static void Main()
theDisplay.Refresh();
System.Threading.Thread.Sleep(14);
}

}

private static void setValuesFromSA2()
Expand Down

0 comments on commit 05ffecb

Please sign in to comment.