diff --git a/OpenRA.Mods.RA/Widgets/Delegates/MapChooserDelegate.cs b/OpenRA.Mods.RA/Widgets/Delegates/MapChooserDelegate.cs index e0c9d35b2b22..dcc83e4bfa2b 100644 --- a/OpenRA.Mods.RA/Widgets/Delegates/MapChooserDelegate.cs +++ b/OpenRA.Mods.RA/Widgets/Delegates/MapChooserDelegate.cs @@ -85,7 +85,7 @@ void EnumerateMaps() bool InstallMap() { - Game.Utilities.PromptFilepathAsync("Select MAIN.MIX on the CD", path => + Game.Utilities.PromptFilepathAsync("Select an OpenRA map file", path => { if (!string.IsNullOrEmpty(path)) Game.RunAfterTick(() => InstallMapInner(path)); @@ -105,6 +105,8 @@ void InstallMapInner(string path) if (!Directory.Exists(dir)) Directory.CreateDirectory(dir); + // TODO: Attempt to mount the map and verify that + // it is a valid Game.modData.Manifest.Mods[0] map. File.Copy(path, toPath, true); Game.modData.ReloadMaps(); EnumerateMaps();