Added "All files" filter for open/save map dialogs (not for choosing the IWAD though, because that's always .wad or .srb)

This commit is contained in:
MascaraSnake 2016-01-05 14:31:30 +01:00
parent b22a22317f
commit e8d7a324a0

View file

@ -1204,7 +1204,7 @@ namespace CodeImp.DoomBuilder
// Open map file dialog
OpenFileDialog openfile = new OpenFileDialog();
openfile.Filter = "Doom WAD Files (*.wad)|*.wad";
openfile.Filter = "WAD Files (*.wad)|*.wad|All files|*.*";
openfile.Title = "Open Map";
if(!string.IsNullOrEmpty(settings.LastUsedMapFolder) && Directory.Exists(settings.LastUsedMapFolder)) //mxd
openfile.InitialDirectory = settings.LastUsedMapFolder; //mxd
@ -1501,7 +1501,7 @@ namespace CodeImp.DoomBuilder
// Show save as dialog
SaveFileDialog savefile = new SaveFileDialog();
savefile.Filter = "Doom WAD Files (*.wad)|*.wad";
savefile.Filter = "WAD Files (*.wad)|*.wad|All files|*.*";
savefile.Title = "Save Map As";
savefile.AddExtension = true;
savefile.CheckPathExists = true;
@ -1573,7 +1573,7 @@ namespace CodeImp.DoomBuilder
// Show save as dialog
SaveFileDialog savefile = new SaveFileDialog();
savefile.Filter = "Doom WAD Files (*.wad)|*.wad";
savefile.Filter = "WAD Files (*.wad)|*.wad|All files|*.*";
savefile.Title = "Save Map Into";
savefile.AddExtension = true;
savefile.CheckPathExists = true;