Clean wonder card filename suggestion

Removes illegal filename characters. " " " " "
This commit is contained in:
Kurt
2015-12-29 10:36:32 -08:00
parent b9af9deac8
commit beaddf47fe

View File

@@ -145,7 +145,7 @@ private void B_Output_Click(object sender, EventArgs e)
SaveFileDialog outputwc6 = new SaveFileDialog();
int cardID = BitConverter.ToUInt16(wondercard_data, 0);
string cardname = Encoding.Unicode.GetString(wondercard_data, 0x2, 0x48);
outputwc6.FileName = cardID + " - " + cardname + ".wc6";
outputwc6.FileName = Util.CleanFileName(cardID + " - " + cardname + ".wc6");
outputwc6.Filter = "Wonder Card|*.wc6";
if (outputwc6.ShowDialog() != DialogResult.OK) return;