Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix prompt title.
  • Loading branch information
pchote committed Jan 27, 2011
1 parent 96a6bda commit 1c67242
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OpenRA.Mods.RA/Widgets/Delegates/MapChooserDelegate.cs
Expand Up @@ -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));
Expand All @@ -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();
Expand Down

0 comments on commit 1c67242

Please sign in to comment.