Don't allow illegal filechars in mod name

pull/6/head
Miepee 5 years ago
parent 40c21e8d3b
commit ac30bb5e28

@ -73,6 +73,12 @@ namespace AM2R_ModPacker
return;
}
if (Path.GetInvalidFileNameChars().Any(NameTextBox.Text.Contains))
{
MessageBox.Show("Name contains invalid characters! These characters are not allowed:\n" + string.Join("\n", Path.GetInvalidFileNameChars()));
return;
}
CreateLabel.Visible = true;
CreateLabel.Text = "Packaging mod(s)... This could take a while!";

Loading…
Cancel
Save