mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 17:28:43 -05:00
wc6full fix
fix typo, add filter
This commit is contained in:
@@ -655,7 +655,7 @@ private void openFile(byte[] input, string path, string ext)
|
||||
}
|
||||
#endregion
|
||||
#region Wondercard
|
||||
else if ((input.Length == WC6.Size && ext == ".wc6") || (input.Length == WC6.SizeFull && ext == ".wcfull6"))
|
||||
else if ((input.Length == WC6.Size && ext == ".wc6") || (input.Length == WC6.SizeFull && ext == ".wc6full"))
|
||||
{
|
||||
if (input.Length == WC6.SizeFull) // Take bytes at end = WC6 size.
|
||||
input = input.Skip(WC6.SizeFull - WC6.Size).ToArray();
|
||||
|
||||
@@ -118,7 +118,7 @@ private void setCardID(int cardID)
|
||||
// Wonder Card IO (.wc6<->window)
|
||||
private void B_Import_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog importwc6 = new OpenFileDialog {Filter = "Wonder Card|*.wc6"};
|
||||
OpenFileDialog importwc6 = new OpenFileDialog {Filter = "Wonder Card|*.wc6;*.wc6full"};
|
||||
if (importwc6.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
string path = importwc6.FileName;
|
||||
|
||||
Reference in New Issue
Block a user