diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-02-14 20:05:59 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-02-14 20:05:59 +0000 |
| commit | d1ba7d9232b2d81e69631de3a126ff52eefbc764 (patch) | |
| tree | 68be2579c8eea2492101fb17d07f6ef2cd5a33f2 | |
| parent | 111ada78b7d179e115466c726ae1d7d05fed9ddb (diff) | |
| download | pcsxr-d1ba7d9232b2d81e69631de3a126ff52eefbc764.tar.gz | |
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
| -rwxr-xr-x | macosx/PcsxrPluginHandler.m | 4 |
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), |
