diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-01-12 23:24:21 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-01-12 23:24:21 +0000 |
| commit | c9dad6c0726165177ba5acd093ef01055b5a3302 (patch) | |
| tree | 8749995d57d711358730bb1575afdeff8c10608d | |
| parent | 3d3c8a83cdb19c2f8cc55c472fc6068971326556 (diff) | |
| download | pcsxr-c9dad6c0726165177ba5acd093ef01055b5a3302.tar.gz | |
OS X:
Use createDirectoryAtURL:… instead of createDirectoryAtPath:… where appropriate.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@88276 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rwxr-xr-x | macosx/PcsxrController.m | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/macosx/PcsxrController.m b/macosx/PcsxrController.m index 5c526e52..51e29ce6 100755 --- a/macosx/PcsxrController.m +++ b/macosx/PcsxrController.m @@ -791,20 +791,20 @@ otherblock();\ // create them if needed url = [PcsxrAppSupport URLByAppendingPathComponent:@"Bios"]; if (![url checkResourceIsReachableAndReturnError:NULL]) - [manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL]; + [manager createDirectoryAtURL:url withIntermediateDirectories:YES attributes:nil error:NULL]; MemCardPath = [PcsxrAppSupport URLByAppendingPathComponent:@"Memory Cards"]; url = MemCardPath; if (![url checkResourceIsReachableAndReturnError:NULL]) - [manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL]; + [manager createDirectoryAtURL:url withIntermediateDirectories:YES attributes:nil error:NULL]; url = [PcsxrAppSupport URLByAppendingPathComponent:@"Patches"]; if (![url checkResourceIsReachableAndReturnError:NULL]) - [manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL]; + [manager createDirectoryAtURL:url withIntermediateDirectories:YES attributes:nil error:NULL]; url = [PcsxrAppSupport URLByAppendingPathComponent:@"PlugIns"]; if (![url checkResourceIsReachableAndReturnError:NULL]) - [manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL]; + [manager createDirectoryAtURL:url withIntermediateDirectories:YES attributes:nil error:NULL]; saveStatePath = [[[PcsxrAppSupport URLByAppendingPathComponent:@"Save States"] path] copy]; if (![manager fileExistsAtPath:saveStatePath isDirectory:&dir]) @@ -812,15 +812,18 @@ otherblock();\ url = [MemCardPath URLByAppendingPathComponent:@"Mcd001.mcr"]; str = [[url path] fileSystemRepresentation]; - if (str != nil) strlcpy(Config.Mcd1, str, MAXPATHLEN); + if (str != nil) + strlcpy(Config.Mcd1, str, MAXPATHLEN); url = [MemCardPath URLByAppendingPathComponent:@"Mcd002.mcr"]; str = [[url path] fileSystemRepresentation]; - if (str != nil) strlcpy(Config.Mcd2, str, MAXPATHLEN); + if (str != nil) + strlcpy(Config.Mcd2, str, MAXPATHLEN); url = [PcsxrAppSupport URLByAppendingPathComponent:@"Bios"]; str = [[url path] fileSystemRepresentation]; - if (str != nil) strlcpy(Config.BiosDir, str, MAXPATHLEN); + if (str != nil) + strlcpy(Config.BiosDir, str, MAXPATHLEN); url = [PcsxrAppSupport URLByAppendingPathComponent:@"Patches"]; str = [[url path] fileSystemRepresentation]; @@ -838,7 +841,8 @@ otherblock();\ // set plugin path path = [[NSBundle mainBundle] builtInPlugInsPath]; str = [path fileSystemRepresentation]; - if (str != nil) strlcpy(Config.PluginsDir, str, MAXPATHLEN); + if (str != nil) + strlcpy(Config.PluginsDir, str, MAXPATHLEN); // locate a bios biosList = [[NSMutableArray alloc] init]; |
