Gen7 update

Never added wc7 extensions; drag&drop use MysteryGift extension instead
of hardcoded .wc6
This commit is contained in:
Kurt
2017-01-19 23:48:31 -08:00
parent be357a21e0
commit 088f9a9aa7

View File

@@ -125,6 +125,8 @@ private string getFilter()
return "Gen5 Mystery Gift|*.pgf|All Files|*.*";
case 6:
return "Gen6 Mystery Gift|*.wc6;*.wc6full|All Files|*.*";
case 7:
return "Gen7 Mystery Gift|*.wc7;*.wc7full|All Files|*.*";
default:
return "";
}
@@ -382,7 +384,7 @@ private void pbBoxSlot_MouseDown(object sender, MouseEventArgs e)
// Prepare Data
MysteryGift card = mga.Gifts[index];
string filename = Util.CleanFileName($"{card.CardID:0000} - {card.CardTitle}.wc6");
string filename = Util.CleanFileName($"{card.CardID:0000} - {card.CardTitle}.{card.Extension}");
// Make File
string newfile = Path.Combine(Path.GetTempPath(), Util.CleanFileName(filename));