mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
Merge pull request #1138 from kwsch/b/hax
Activate illegal mode with command-line arg
This commit is contained in:
commit
b4d18baf83
|
|
@ -149,8 +149,7 @@ public Main()
|
|||
#endregion
|
||||
#region Localize & Populate Fields
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
string filename = args.Length > 0 ? Path.GetFileNameWithoutExtension(args[0])?.ToLower() : "";
|
||||
HaX = filename?.IndexOf("hax", StringComparison.Ordinal) >= 0;
|
||||
HaX = args.Any(x => x.Trim('-').ToLower() == "hax");
|
||||
|
||||
bool showChangelog = false;
|
||||
bool BAKprompt = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user