From 1c6724221086f5aba5f51d7e5d5b03967abc9603 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 23 Jan 2011 20:38:00 +1300 Subject: [PATCH] Fix prompt title. --- OpenRA.Mods.RA/Widgets/Delegates/MapChooserDelegate.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();