File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ GameRegistryInstallPath=SOFTWARE\DawnOfTheTiberiumAge
4848; Specifies the file filter string used in OpenFileDialog (Windows)
4949; For multiple file formats, list them with : (instead of ;)
5050; Example config with multiple file extensions: "YR maps|*.map:*.mpr:*.yrm|All files|*.*"
51- OpenFileDialogFilter =TS maps|*.map|All files|*.*
51+ OpenMapFileDialogFilter =TS maps|*.map|All files|*.*
5252
5353; Should the editor consider Ares [#include] or Phobos [$Include] section?
5454EnableIniInclude =false
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public static class Constants
2323 public static string GameRegistryInstallPath = "SOFTWARE\\ DawnOfTheTiberiumAge" ;
2424
2525 public static bool EnableIniInclude = false ;
26- public static string OpenFileMapDialogFilter = "TS maps|*.map|All files|*.*" ;
26+ public static string OpenMapFileDialogFilter = "TS maps|*.map|All files|*.*" ;
2727 public static string OpenImageFileDialogFilter = "Images|*.bmp;*.png;*.jpg;*.jpeg|All files|*.*" ;
2828
2929 public static bool EnableIniInheritance = false ;
@@ -111,7 +111,7 @@ public static void Init()
111111
112112 ExpectedClientExecutableName = constantsIni . GetStringValue ( ConstantsSectionName , nameof ( ExpectedClientExecutableName ) , ExpectedClientExecutableName ) ;
113113 GameRegistryInstallPath = constantsIni . GetStringValue ( ConstantsSectionName , nameof ( GameRegistryInstallPath ) , GameRegistryInstallPath ) ;
114- OpenFileMapDialogFilter = constantsIni . GetStringValue ( ConstantsSectionName , nameof ( OpenFileMapDialogFilter ) , OpenFileMapDialogFilter ) ;
114+ OpenMapFileDialogFilter = constantsIni . GetStringValue ( ConstantsSectionName , nameof ( OpenMapFileDialogFilter ) , OpenMapFileDialogFilter ) ;
115115
116116 EnableIniInclude = constantsIni . GetBooleanValue ( ConstantsSectionName , nameof ( EnableIniInclude ) , EnableIniInclude ) ;
117117 EnableIniInheritance = constantsIni . GetBooleanValue ( ConstantsSectionName , nameof ( EnableIniInheritance ) , EnableIniInheritance ) ;
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ private void BtnBrowseMapPath_LeftClick(object sender, EventArgs e)
313313 using ( OpenFileDialog openFileDialog = new OpenFileDialog ( ) )
314314 {
315315 openFileDialog . InitialDirectory = tbMapPath . Text ;
316- openFileDialog . Filter = Constants . OpenFileMapDialogFilter . Replace ( ':' , ';' ) ;
316+ openFileDialog . Filter = Constants . OpenMapFileDialogFilter . Replace ( ':' , ';' ) ;
317317 openFileDialog . RestoreDirectory = true ;
318318
319319 if ( openFileDialog . ShowDialog ( ) == DialogResult . OK )
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ private void Open()
265265 using ( OpenFileDialog openFileDialog = new OpenFileDialog ( ) )
266266 {
267267 openFileDialog . InitialDirectory = initialPath ;
268- openFileDialog . Filter = Constants . OpenFileMapDialogFilter . Replace ( ':' , ';' ) ;
268+ openFileDialog . Filter = Constants . OpenMapFileDialogFilter . Replace ( ':' , ';' ) ;
269269 openFileDialog . RestoreDirectory = true ;
270270
271271 if ( openFileDialog . ShowDialog ( ) == DialogResult . OK )
@@ -287,7 +287,7 @@ private void SaveAs()
287287 {
288288 saveFileDialog . InitialDirectory = Path . GetDirectoryName ( initialPath ) ;
289289 saveFileDialog . FileName = Path . GetFileName ( initialPath ) ;
290- saveFileDialog . Filter = Constants . OpenFileMapDialogFilter . Replace ( ':' , ';' ) ;
290+ saveFileDialog . Filter = Constants . OpenMapFileDialogFilter . Replace ( ':' , ';' ) ;
291291 saveFileDialog . RestoreDirectory = true ;
292292
293293 if ( saveFileDialog . ShowDialog ( ) == DialogResult . OK )
You can’t perform that action at this time.
0 commit comments