summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
Diffstat (limited to 'macosx')
-rwxr-xr-xmacosx/PcsxrController.m20
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];