mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 12:50:52 +00:00
Open WAD dialog: don't filter for lowercase *.wad exclusively on non-Windows platforms. Resolves #567
This commit is contained in:
parent
839eb843bb
commit
793643b20d
1 changed files with 9 additions and 2 deletions
|
@ -1197,9 +1197,16 @@ namespace CodeImp.DoomBuilder
|
||||||
|
|
||||||
// Open map file dialog
|
// Open map file dialog
|
||||||
OpenFileDialog openfile = new OpenFileDialog();
|
OpenFileDialog openfile = new OpenFileDialog();
|
||||||
openfile.Filter = "Doom WAD Files (*.wad)|*.wad";
|
|
||||||
openfile.Title = "Open Map";
|
openfile.Title = "Open Map";
|
||||||
if(!string.IsNullOrEmpty(settings.LastUsedMapFolder) && Directory.Exists(settings.LastUsedMapFolder)) //mxd
|
|
||||||
|
#if NO_WIN32
|
||||||
|
// No easy way to have case-insesitivity for non-Windows platforms
|
||||||
|
openfile.Filter = "Doom WAD Files (*.wad)|*.wad;*.Wad;*.wAd;*.WAd;*.waD;*.WaD;*.wAD;*.WAD";
|
||||||
|
#else
|
||||||
|
openfile.Filter = "Doom WAD Files (*.wad)|*.wad";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(settings.LastUsedMapFolder) && Directory.Exists(settings.LastUsedMapFolder)) //mxd
|
||||||
{
|
{
|
||||||
openfile.RestoreDirectory = true;
|
openfile.RestoreDirectory = true;
|
||||||
openfile.InitialDirectory = settings.LastUsedMapFolder;
|
openfile.InitialDirectory = settings.LastUsedMapFolder;
|
||||||
|
|
Loading…
Reference in a new issue