mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-26 13:45:31 -05:00
Added Wondercard Code Generation
This commit is contained in:
3
CodeGenerator.Designer.cs
generated
3
CodeGenerator.Designer.cs
generated
@@ -87,7 +87,8 @@ private void InitializeComponent()
|
||||
this.CB_Source.FormattingEnabled = true;
|
||||
this.CB_Source.Items.AddRange(new object[] {
|
||||
"Loaded EKX (Tabs)",
|
||||
"Box EKX "});
|
||||
"Box EKX",
|
||||
"Wondercard"});
|
||||
this.CB_Source.Location = new System.Drawing.Point(90, 23);
|
||||
this.CB_Source.Name = "CB_Source";
|
||||
this.CB_Source.Size = new System.Drawing.Size(132, 21);
|
||||
|
||||
@@ -64,7 +64,13 @@ private bool loaddata()
|
||||
// Wondercard #
|
||||
int wcn = CB_Slot.SelectedIndex;
|
||||
// copy from save, the chosen wondercard offset, to new data
|
||||
Array.Copy(m_parent.savefile, SaveGame.Wondercard + wcn * 0x108, newdata, 0, 0x108);
|
||||
Array.Copy(m_parent.savefile, SaveGame.Wondercard + wcn * 0x108 + 0x100, newdata, 0, 0x108);
|
||||
byte[] zerodata = new Byte[0x108];
|
||||
if (newdata.SequenceEqual(zerodata))
|
||||
{
|
||||
System.Media.SystemSounds.Exclamation.Play();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user