File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 } \" .") ;
You can’t perform that action at this time.
0 commit comments