Set the default map location to the support dir.
This commit is contained in:
@@ -76,8 +76,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
var mapDirectory = map.Path != null ? Platform.UnresolvePath(Path.GetDirectoryName(map.Path)) : null;
|
var mapDirectory = map.Path != null ? Platform.UnresolvePath(Path.GetDirectoryName(map.Path)) : null;
|
||||||
var initialDirectory = mapDirectories.Keys.FirstOrDefault(f => f == mapDirectory);
|
var initialDirectory = mapDirectories.Keys.FirstOrDefault(f => f == mapDirectory);
|
||||||
|
|
||||||
|
// Prioritize MapClassification.User directories over system directories
|
||||||
if (initialDirectory == null)
|
if (initialDirectory == null)
|
||||||
initialDirectory = mapDirectories.Keys.First();
|
initialDirectory = mapDirectories.OrderByDescending(kv => kv.Value).First().Key;
|
||||||
|
|
||||||
directoryDropdown.Text = initialDirectory;
|
directoryDropdown.Text = initialDirectory;
|
||||||
directoryDropdown.OnClick = () =>
|
directoryDropdown.OnClick = () =>
|
||||||
|
|||||||
Reference in New Issue
Block a user