From 32ba9c3e648b3af3a1c04569fbe5cf06c46d9780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Andr=C3=A9?= Date: Sat, 7 Jul 2018 23:58:40 -0300 Subject: [PATCH] Fix Retard Bugs --- SSMGui/Form1.cs | 2 +- SiglusPatcher/Program.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SSMGui/Form1.cs b/SSMGui/Form1.cs index 68a3725..7f8f061 100644 --- a/SSMGui/Form1.cs +++ b/SSMGui/Form1.cs @@ -16,7 +16,7 @@ public Form1() { private void openFileDialog1_FileOk(object sender, CancelEventArgs e) { byte[] file = System.IO.File.ReadAllBytes(openFileDialog1.FileName); string[] Strs; - if (openFileDialog1.FilterIndex == 0) { + if (openFileDialog1.FilterIndex == 1) { Script = new SSManager(file); Strs = Script.Import(); DBMode = false; diff --git a/SiglusPatcher/Program.cs b/SiglusPatcher/Program.cs index bdde27f..91a1092 100644 --- a/SiglusPatcher/Program.cs +++ b/SiglusPatcher/Program.cs @@ -27,8 +27,10 @@ static void Main(string[] args) { } bool Wordwrap = false; foreach (string exe in args) { - if (exe.Trim(' ', '-', '\\').ToLower().StartsWith("wordwrap")) + if (exe.Trim(' ', '-', '\\').ToLower().StartsWith("wordwrap")) { Wordwrap = true; + continue; + } byte[] Executable = File.ReadAllBytes(exe); bool NoLoop = false; again: ;