Keep the bs inside the launcher
This commit is contained in:
@@ -57,17 +57,16 @@ namespace OpenRA.Utility
|
|||||||
{
|
{
|
||||||
string[] args = argValue.Split(',');
|
string[] args = argValue.Split(',');
|
||||||
|
|
||||||
if (args.Length != 3)
|
if (args.Length != 2)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Error: invalid syntax");
|
Console.WriteLine("Error: invalid syntax");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
string zipFile = args[0];
|
string zipFile = args[0];
|
||||||
string mod = args[1];
|
string path = args[1];
|
||||||
string path = args[2];
|
|
||||||
|
|
||||||
if (!File.Exists(zipFile)) { Console.WriteLine("Error: Could not find {0}", zipFile); return; }
|
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>();
|
List<string> extracted = new List<string>();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ namespace OpenRA.Utility
|
|||||||
Console.WriteLine(" -l,--list-mods List currently installed mods");
|
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(" -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(" --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-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(" --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");
|
Console.WriteLine(" --settings-value=SUPPORTDIR,KEY Get value of KEY in SUPPORTDIR/settings.yaml");
|
||||||
|
|||||||
Reference in New Issue
Block a user