Create the user map directory if required.

Fixes #8772.
This commit is contained in:
Paul Chote
2015-07-25 09:36:29 +01:00
parent ded5a2b16a
commit c70ebfab74

View File

@@ -134,6 +134,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
map.RequiresMod = Game.ModData.Manifest.Mod.Id;
// Create the map directory if required
Directory.CreateDirectory(Platform.ResolvePath(directoryDropdown.Text));
var combinedPath = Platform.ResolvePath(Path.Combine(directoryDropdown.Text, filename.Text + fileTypes[typeDropdown.Text]));
// Invalidate the old map metadata