summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmacosx/PcsxrPluginHandler.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/macosx/PcsxrPluginHandler.m b/macosx/PcsxrPluginHandler.m
index a025f111..17873cf3 100755
--- a/macosx/PcsxrPluginHandler.m
+++ b/macosx/PcsxrPluginHandler.m
@@ -68,9 +68,7 @@
NSURL *url = [[supportURL URLByAppendingPathComponent:@"Pcsxr"] URLByAppendingPathComponent:@"PlugIns"];
NSFileWrapper *wrapper = [[NSFileWrapper alloc] initWithPath:theFile];
- NSString *dst = [NSString stringWithFormat:@"%@/%@",
- [url path],
- [wrapper filename]];
+ NSString *dst = [[url URLByAppendingPathComponent:[wrapper filename]] path];
if ([wrapper writeToFile:dst atomically:NO updateFilenames:NO]) {
[[NSWorkspace sharedWorkspace] noteFileSystemChanged:[url path]];
NSRunInformationalAlertPanel(NSLocalizedString(@"Installation Succesfull", nil),