Remove file prompting and drop all the remaining utility communication plumbing.
This commit is contained in:
@@ -24,19 +24,6 @@ namespace OpenRA.Utility
|
||||
{
|
||||
static class Command
|
||||
{
|
||||
public static void DisplayFilepicker(string[] args)
|
||||
{
|
||||
if (args.Length < 2)
|
||||
{
|
||||
Console.WriteLine("Error: Invalid syntax");
|
||||
return;
|
||||
}
|
||||
|
||||
using (var dialog = new OpenFileDialog() { Title = args[1] })
|
||||
if (dialog.ShowDialog() == DialogResult.OK)
|
||||
Console.WriteLine(dialog.FileName);
|
||||
}
|
||||
|
||||
public static void Settings(string[] args)
|
||||
{
|
||||
if (args.Length < 2)
|
||||
@@ -122,7 +109,7 @@ namespace OpenRA.Utility
|
||||
bitmap.Save(dest);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void ConvertFormat2ToFormat80(string[] args)
|
||||
{
|
||||
var src = args[1];
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace OpenRA.Utility
|
||||
{
|
||||
var actions = new Dictionary<string, Action<string[]>>()
|
||||
{
|
||||
{ "--display-filepicker", Command.DisplayFilepicker },
|
||||
{ "--settings-value", Command.Settings },
|
||||
{ "--shp", Command.ConvertPngToShp },
|
||||
{ "--png", Command.ConvertShpToPng },
|
||||
|
||||
Reference in New Issue
Block a user