Skip to content

Commit 0b76422

Browse files
committed
Update Program.cs
1 parent b11fd6f commit 0b76422

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

UnturnedRedistUpdateTool/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ public static async Task<int> Main(string[] args)
2020
AssertPlatformSupported();
2121

2222
string unturnedPath;
23+
string redistPath;
2324
if (args.Length < 3)
2425
{
25-
Console.WriteLine("Wrong usage. Correct usage: UnturnedRedistAutoUpdate.exe <path> <app_id> [args]");
26+
Console.WriteLine("Wrong usage. Correct usage: UnturnedRedistUpdateTool.exe <path> <redist_path> <app_id> [args]");
2627
return 1;
2728
}
2829
unturnedPath = args[0];
29-
AppId = args[1];
30+
redistPath = args[1];
31+
AppId = args[2];
3032
Force = !args.Any(x => x.Equals("--force", StringComparison.OrdinalIgnoreCase));
3133

3234
if (string.IsNullOrWhiteSpace(AppId))
@@ -39,7 +41,6 @@ public static async Task<int> Main(string[] args)
3941
Console.WriteLine($"Path doesn't exists: \"{unturnedPath}\".");
4042
return 1;
4143
}
42-
var redistPath = Path.Combine(unturnedPath, "redist");
4344
if (Directory.Exists(redistPath) == false)
4445
{
4546
Console.WriteLine($"Redist path doesn't exists: \"{redistPath}\".");

0 commit comments

Comments
 (0)