summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/Langpack Suite/Form1.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/Langpack Suite/Form1.cs b/tools/Langpack Suite/Form1.cs
index ab64f79a9f..e0c9baa2e8 100644
--- a/tools/Langpack Suite/Form1.cs
+++ b/tools/Langpack Suite/Form1.cs
@@ -19,7 +19,7 @@ namespace Langpack_Suite
private CultureInfo culture;
public FolderBrowserDialog LangpackFolder;
public String[] arguments;
- public bool vitype, quiet = false;
+ public bool vitype, quiet = false, outfile = false;
public string output = "";
Searcher search;
ToolTip tipper;
@@ -77,6 +77,7 @@ namespace Langpack_Suite
if (key.Equals("\\l"))
{
output = arguments[i].Substring(2);
+ outfile = true;
}
if (key.Equals("\\p"))
{
@@ -189,7 +190,8 @@ namespace Langpack_Suite
InfMessageLangBox.Text = LocaleText + "\r\n";
FolderName = Directory.GetParent(Directory.GetCurrentDirectory()).ToString() + "\\" + LangpacksComboBox.Text;
- output = FolderName + "\\" + LangpackNameEdit.Text + ".txt";
+ if (!outfile)
+ output = FolderName + "\\" + LangpackNameEdit.Text + ".txt";
if (File.Exists(output))
File.Delete(output);