mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 09:46:42 -05:00
Clean wonder card filename suggestion
Removes illegal filename characters. " " " " "
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user