Fix installing ra from disk

This commit is contained in:
Paul Chote
2011-02-05 12:44:33 +13:00
parent 8765e986b1
commit 0c954367a0
3 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ extern char **environ;
- (void)installRAPackages:(NSArray *)args - (void)installRAPackages:(NSArray *)args
{ {
// Todo: check if we can write to the requested dir, escalate priviledges if required. // Todo: check if we can write to the requested dir, escalate priviledges if required.
NSArray *a = [NSArray arrayWithObjects:@"--install-ra-packages-inner", [args objectAtIndex:2], nil]; NSArray *a = [NSArray arrayWithObjects:@"--install-ra-packages-inner", [args objectAtIndex:2], [args objectAtIndex:3], nil];
[self runUtilityWithArgs:a]; [self runUtilityWithArgs:a];
} }

View File

@@ -70,7 +70,7 @@ namespace OpenRA.Utility
Console.WriteLine("Status: Extracting {0}", file.ToLowerInvariant()); Console.WriteLine("Status: Extracting {0}", file.ToLowerInvariant());
File.Copy( File.Copy(
Path.Combine(fromPath, file), Path.Combine(fromPath, file),
Path.Combine(toPath, file.ToLowerInvariant()), true); Path.Combine(toPath, Path.GetFileName(file).ToLowerInvariant()), true);
} }
Console.WriteLine("Status: Completed"); Console.WriteLine("Status: Completed");