wc6full fix

fix typo, add filter
This commit is contained in:
Kaphotics
2016-04-06 17:46:34 -07:00
parent e0a2226228
commit cb9cab9ac0
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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;