diff --git a/OpenRA.Utility/Command.cs b/OpenRA.Utility/Command.cs index 4e251d724f..cc9bcea144 100644 --- a/OpenRA.Utility/Command.cs +++ b/OpenRA.Utility/Command.cs @@ -146,16 +146,12 @@ namespace OpenRA.Utility foreach (var f in files) { - if (f == "--userdir") - break; - var src = FileSystem.Open(f); if (src == null) throw new InvalidOperationException("File not found: {0}".F(f)); var data = src.ReadAllBytes(); - var output = args.Contains("--userdir") ? Platform.SupportDir + f : f; - File.WriteAllBytes(output, data); - Console.WriteLine(output + " saved."); + File.WriteAllBytes(f, data); + Console.WriteLine(f + " saved."); } } diff --git a/OpenRA.Utility/Program.cs b/OpenRA.Utility/Program.cs index aea3b5b1c6..89c4f453de 100644 --- a/OpenRA.Utility/Program.cs +++ b/OpenRA.Utility/Program.cs @@ -57,7 +57,7 @@ namespace OpenRA.Utility Console.WriteLine(" --settings-value KEY Get value of KEY from settings.yaml"); Console.WriteLine(" --shp PNGFILE [PNGFILE ...] Combine a list of PNG images into a SHP"); Console.WriteLine(" --png SPRITEFILE PALETTE [--noshadow] [--nopadding] Convert a shp/tmp/R8 to a series of PNGs, optionally removing shadow"); - Console.WriteLine(" --extract MOD[,MOD]* FILES [--userdir] Extract files from mod packages to the current (or user) directory"); + Console.WriteLine(" --extract MOD[,MOD]* FILES Extract files from mod packages to the current directory"); Console.WriteLine(" --remap SRCMOD:PAL DESTMOD:PAL SRCSHP DESTSHP Remap SHPs to another palette"); Console.WriteLine(" --transpose SRCSHP DESTSHP START N M [START N M ...] Transpose the N*M block of frames starting at START."); Console.WriteLine(" --docs MOD Generate trait documentation in MarkDown format.");