Keep the bs inside the launcher
This commit is contained in:
@@ -57,17 +57,16 @@ namespace OpenRA.Utility
|
||||
{
|
||||
string[] args = argValue.Split(',');
|
||||
|
||||
if (args.Length != 3)
|
||||
if (args.Length != 2)
|
||||
{
|
||||
Console.WriteLine("Error: invalid syntax");
|
||||
return;
|
||||
}
|
||||
string zipFile = args[0];
|
||||
string mod = args[1];
|
||||
string path = args[2];
|
||||
string path = args[1];
|
||||
|
||||
if (!File.Exists(zipFile)) { Console.WriteLine("Error: Could not find {0}", zipFile); return; }
|
||||
string dest = "mods{0}{1}{0}{2}".F(Path.DirectorySeparatorChar,mod,path);
|
||||
string dest = "mods{0}{1}".F(Path.DirectorySeparatorChar,path);
|
||||
List<string> extracted = new List<string>();
|
||||
try
|
||||
{
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace OpenRA.Utility
|
||||
Console.WriteLine(" -l,--list-mods List currently installed mods");
|
||||
Console.WriteLine(" -i=MODS,--mod-info=MODS List metadata for MODS (comma separated list of mods)");
|
||||
Console.WriteLine(" --download-url=URL,DEST Download a file from URL to DEST");
|
||||
Console.WriteLine(" --extract-zip=ZIPFILE,MOD,PATH Extract the zip ZIPFILE to DEST relative to MOD");
|
||||
Console.WriteLine(" --extract-zip=ZIPFILE,PATH Extract the zip ZIPFILE to DEST (relative to openra dir)");
|
||||
Console.WriteLine(" --install-ra-packages=PATH Install required packages for RA from CD to PATH");
|
||||
Console.WriteLine(" --install-cnc-packages=PATH Install required packages for C&C from CD to PATH");
|
||||
Console.WriteLine(" --settings-value=SUPPORTDIR,KEY Get value of KEY in SUPPORTDIR/settings.yaml");
|
||||
|
||||
Reference in New Issue
Block a user