mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-30 23:06:45 -05:00
Fix main blank save init parameters
This commit is contained in:
13
PKX/f1-Main.Designer.cs
generated
13
PKX/f1-Main.Designer.cs
generated
@@ -2635,7 +2635,7 @@ public void InitializeComponent()
|
||||
this.Menu_Open.Name = "Menu_Open";
|
||||
this.Menu_Open.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
|
||||
this.Menu_Open.ShowShortcutKeys = false;
|
||||
this.Menu_Open.Size = new System.Drawing.Size(152, 22);
|
||||
this.Menu_Open.Size = new System.Drawing.Size(139, 22);
|
||||
this.Menu_Open.Text = "&Open...";
|
||||
this.Menu_Open.Click += new System.EventHandler(this.mainMenuOpen);
|
||||
//
|
||||
@@ -2645,7 +2645,7 @@ public void InitializeComponent()
|
||||
this.Menu_Save.Name = "Menu_Save";
|
||||
this.Menu_Save.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
|
||||
this.Menu_Save.ShowShortcutKeys = false;
|
||||
this.Menu_Save.Size = new System.Drawing.Size(152, 22);
|
||||
this.Menu_Save.Size = new System.Drawing.Size(139, 22);
|
||||
this.Menu_Save.Text = "&Save PK6...";
|
||||
this.Menu_Save.Click += new System.EventHandler(this.mainMenuSave);
|
||||
//
|
||||
@@ -2657,7 +2657,7 @@ public void InitializeComponent()
|
||||
this.Menu_ExportSAV.Enabled = false;
|
||||
this.Menu_ExportSAV.Image = global::PKHeX.Properties.Resources.saveSAV;
|
||||
this.Menu_ExportSAV.Name = "Menu_ExportSAV";
|
||||
this.Menu_ExportSAV.Size = new System.Drawing.Size(152, 22);
|
||||
this.Menu_ExportSAV.Size = new System.Drawing.Size(139, 22);
|
||||
this.Menu_ExportSAV.Text = "&Export SAV...";
|
||||
//
|
||||
// Menu_ExportMAIN
|
||||
@@ -2666,7 +2666,7 @@ public void InitializeComponent()
|
||||
this.Menu_ExportMAIN.Name = "Menu_ExportMAIN";
|
||||
this.Menu_ExportMAIN.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E)));
|
||||
this.Menu_ExportMAIN.ShowShortcutKeys = false;
|
||||
this.Menu_ExportMAIN.Size = new System.Drawing.Size(152, 22);
|
||||
this.Menu_ExportMAIN.Size = new System.Drawing.Size(130, 22);
|
||||
this.Menu_ExportMAIN.Text = "&Export main";
|
||||
this.Menu_ExportMAIN.Click += new System.EventHandler(this.clickExportSAV);
|
||||
//
|
||||
@@ -2676,7 +2676,7 @@ public void InitializeComponent()
|
||||
this.Menu_ExportBAK.Name = "Menu_ExportBAK";
|
||||
this.Menu_ExportBAK.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.B)));
|
||||
this.Menu_ExportBAK.ShowShortcutKeys = false;
|
||||
this.Menu_ExportBAK.Size = new System.Drawing.Size(152, 22);
|
||||
this.Menu_ExportBAK.Size = new System.Drawing.Size(130, 22);
|
||||
this.Menu_ExportBAK.Text = "Export &BAK";
|
||||
this.Menu_ExportBAK.Click += new System.EventHandler(this.clickExportSAVBAK);
|
||||
//
|
||||
@@ -2686,7 +2686,7 @@ public void InitializeComponent()
|
||||
this.Menu_Exit.Name = "Menu_Exit";
|
||||
this.Menu_Exit.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q)));
|
||||
this.Menu_Exit.ShowShortcutKeys = false;
|
||||
this.Menu_Exit.Size = new System.Drawing.Size(152, 22);
|
||||
this.Menu_Exit.Size = new System.Drawing.Size(139, 22);
|
||||
this.Menu_Exit.Text = "&Quit";
|
||||
this.Menu_Exit.Click += new System.EventHandler(this.mainMenuExit);
|
||||
//
|
||||
@@ -2966,6 +2966,7 @@ public void InitializeComponent()
|
||||
//
|
||||
// PAN_Box
|
||||
//
|
||||
this.PAN_Box.BackgroundImage = global::PKHeX.Properties.Resources.box_wp16;
|
||||
this.PAN_Box.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||
this.PAN_Box.Controls.Add(this.bpkx30);
|
||||
this.PAN_Box.Controls.Add(this.bpkx29);
|
||||
|
||||
@@ -108,11 +108,13 @@ public Main()
|
||||
foreach (string arg in args.Skip(1).Where(a => a.Length > 4))
|
||||
openQuick(arg, force: true);
|
||||
}
|
||||
else // Detect save
|
||||
if (!SAV.Exportable) // No SAV loaded from exe args
|
||||
{
|
||||
string path = detectSaveFile();
|
||||
if (path != null)
|
||||
openQuick(path, force: true);
|
||||
else
|
||||
GB_SAVtools.Visible = false;
|
||||
}
|
||||
|
||||
// Splash Screen closes on its own.
|
||||
@@ -126,7 +128,7 @@ public Main()
|
||||
|
||||
#region Important Variables
|
||||
public static PKM pkm = new PK6(); // Tab Pokemon Data Storage
|
||||
public static SaveFile SAV = new SAV6 { Game = (int)GameVersion.AS, OT = "PKHeX", TID = 12345, SID = 54321, Language = 2, Country = 49, SubRegion = 7 }; // Save File
|
||||
public static SaveFile SAV = new SAV6 { Game = (int)GameVersion.AS, OT = "PKHeX", TID = 12345, SID = 54321, Language = 2, Country = 49, SubRegion = 7, ConsoleRegion = 1 }; // Save File
|
||||
public static Color defaultControlWhite, defaultControlText;
|
||||
public static string eggname = "";
|
||||
public const string DatabasePath = "db";
|
||||
@@ -697,6 +699,7 @@ private void openSAV(byte[] input, string path)
|
||||
setPKXBoxes(); // Reload all of the PKX Windows
|
||||
|
||||
// Hide content if not present in game.
|
||||
GB_SAVtools.Visible = true;
|
||||
GB_SUBE.Visible = SAV.HasSUBE;
|
||||
PB_Locked.Visible = SAV.HasBattleBox && SAV.BattleBoxLocked;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user