Implement --display-filepicker in OpenRA.Utility. Remove all the functionality that windows doesn't support.

This commit is contained in:
Paul Chote
2011-01-22 21:26:52 +13:00
parent 44d8e83773
commit a6900c256d
8 changed files with 26 additions and 31 deletions

View File

@@ -125,10 +125,10 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
bool PromptForCD()
{
Game.Utilities.PromptFilepathAsync("Select CD", "Select the {0} CD".F(Info.GameTitle), true, path =>
Game.Utilities.PromptFilepathAsync("Select MAIN.MIX on the CD", path =>
{
if (!string.IsNullOrEmpty(path))
Game.RunAfterTick(() => InstallFromCD(path));
Game.RunAfterTick(() => InstallFromCD(Path.GetDirectoryName(path)));
});
return true;
}