From d1ba7d9232b2d81e69631de3a126ff52eefbc764 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 14 Feb 2013 20:05:59 +0000 Subject: Use URLByAppendingPathComponent: instead of stringWithFormat: to get the destination path. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82899 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PcsxrPluginHandler.m | 4 +--- 1 file changed, 1 insertion(+), 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), -- cgit v1.2.3