mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
Multiple open arguments and bugfix
Species autoselect was previously changed to happen during initial fill of fields. Multiple arguments can now be passed (ie, load a save and a pk6).
This commit is contained in:
parent
22e0e7ee79
commit
4cc9546504
1 changed files with 4 additions and 2 deletions
|
@ -141,7 +141,10 @@ namespace PKHeX
|
|||
pathSDF = Util.GetSDFLocation();
|
||||
path3DS = Util.get3DSLocation();
|
||||
if (args.Length > 1)
|
||||
openQuick(args[1]);
|
||||
{
|
||||
foreach (string arg in args.Skip(1).Where(a => a.Length > 4))
|
||||
openQuick(arg);
|
||||
}
|
||||
else if (path3DS != null && File.Exists(Path.Combine(Path.GetPathRoot(path3DS), "SaveDataBackup", "main")))
|
||||
openQuick(Path.Combine(Path.GetPathRoot(path3DS), "SaveDataBackup", "main"));
|
||||
else if (pathSDF != null)
|
||||
|
@ -159,7 +162,6 @@ namespace PKHeX
|
|||
TB_OT.Font = (Font)TB_Nickname.Font.Clone();
|
||||
TB_OTt2.Font = (Font)TB_Nickname.Font.Clone();
|
||||
Status = "Initialized!";
|
||||
CB_Species.SelectedIndex = 1;
|
||||
|
||||
init = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue