diff --git a/UnionPatcher.Cli/Program.cs b/UnionPatcher.Cli/Program.cs index 934dd33..5d4ee07 100644 --- a/UnionPatcher.Cli/Program.cs +++ b/UnionPatcher.Cli/Program.cs @@ -1,6 +1,4 @@ -using System; -using System.Diagnostics; -using System.IO; +using System.Diagnostics; namespace LBPUnion.UnionPatcher.Cli; diff --git a/UnionPatcher.Gui/EasterEgg.cs b/UnionPatcher.Gui/EasterEgg.cs deleted file mode 100644 index 852b3f6..0000000 --- a/UnionPatcher.Gui/EasterEgg.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - -namespace LBPUnion.UnionPatcher.Gui; - -public static class EasterEgg { - private static bool? restitch = null; - - public static bool Restitch { - get { - if(restitch == null) { - return (bool)(restitch = new Random().Next(1, 10_000) == 1); - } - return (bool)restitch; - } - } -} \ No newline at end of file diff --git a/UnionPatcher.Gui/MainForm.cs b/UnionPatcher.Gui/MainForm.cs index 568660d..22ffb0d 100644 --- a/UnionPatcher.Gui/MainForm.cs +++ b/UnionPatcher.Gui/MainForm.cs @@ -1,5 +1,4 @@ using System; -using System.IO; using System.Diagnostics; using Eto; using Eto.Drawing; @@ -12,6 +11,7 @@ public class MainForm : Form { private readonly FilePicker filePicker; private readonly TextBox serverUrl; private readonly FilePicker outputFileName; + public Dialog CreateOkDialog(string title, string errorMessage) { DynamicLayout layout = new(); Button button; @@ -50,7 +50,7 @@ public class MainForm : Form { public Control CreatePatchButton(int tabIndex = 0) { Button control = new() { - Text = EasterEgg.Restitch ? "Restitch!" : "Patch!", + Text = "Patch!", TabIndex = tabIndex, }; @@ -77,7 +77,7 @@ public class MainForm : Form { } public MainForm() { - this.Title = EasterEgg.Restitch ? "Union Restitcher" : "Union Patcher"; + this.Title = "Union Patcher"; this.ClientSize = new Size(500, -1); this.Content = new TableLayout { Spacing = new Size(5,5),