summaryrefslogtreecommitdiff
path: root/macosx/PcsxrController.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-10 00:04:58 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-10 00:04:58 +0000
commit7a613cfccd715ef0b9daa7e49fee51349367b9c8 (patch)
tree84fed251e91c6daf67727a0db5b8ff440b19b510 /macosx/PcsxrController.m
parent15882a2822759bf1d3856beaa1c37346f371b68c (diff)
downloadpcsxr-7a613cfccd715ef0b9daa7e49fee51349367b9c8.tar.gz
Mainly spacing changes, and a few OCD things.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@80323 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrController.m')
-rw-r--r--macosx/PcsxrController.m23
1 files changed, 14 insertions, 9 deletions
diff --git a/macosx/PcsxrController.m b/macosx/PcsxrController.m
index 72409f7e..66861ada 100644
--- a/macosx/PcsxrController.m
+++ b/macosx/PcsxrController.m
@@ -452,43 +452,48 @@ static NSString *HandleBinCue(NSString *toHandle)
NSURL *supportURL = [manager URLForDirectory:NSApplicationSupportDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:YES error:NULL];
if(supportURL != nil) {
+ NSURL *PcsxrAppSupport;
+ NSURL *MemCardPath;
NSURL *url;
BOOL dir;
+
+ PcsxrAppSupport = [supportURL URLByAppendingPathComponent:@"Pcsxr"];
// create them if needed
- url = [supportURL URLByAppendingPathComponent:@"Pcsxr/Bios"];
+ url = [PcsxrAppSupport URLByAppendingPathComponent:@"Bios"];
if (![url checkResourceIsReachableAndReturnError:NULL])
[manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL];
- url = [supportURL URLByAppendingPathComponent:@"Pcsxr/Memory Cards"];
+ MemCardPath = [PcsxrAppSupport URLByAppendingPathComponent:@"Memory Cards"];
+ url = MemCardPath;
if (![url checkResourceIsReachableAndReturnError:NULL])
[manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL];
- url = [supportURL URLByAppendingPathComponent:@"Pcsxr/Patches"];
+ url = [PcsxrAppSupport URLByAppendingPathComponent:@"Patches"];
if (![url checkResourceIsReachableAndReturnError:NULL])
[manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL];
- url = [supportURL URLByAppendingPathComponent:@"Pcsxr/PlugIns"];
+ url = [PcsxrAppSupport URLByAppendingPathComponent:@"PlugIns"];
if (![url checkResourceIsReachableAndReturnError:NULL])
[manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL];
- saveStatePath = [[[supportURL URLByAppendingPathComponent:@"Pcsxr/Save States"] path] copy];
+ saveStatePath = [[[PcsxrAppSupport URLByAppendingPathComponent:@"Save States"] path] copy];
if (![manager fileExistsAtPath:saveStatePath isDirectory:&dir])
[manager createDirectoryAtPath:saveStatePath withIntermediateDirectories:YES attributes:nil error:NULL];
- url = [supportURL URLByAppendingPathComponent:@"Pcsxr/Memory Cards/Mcd001.mcr"];
+ url = [MemCardPath URLByAppendingPathComponent:@"Mcd001.mcr"];
str = [[url path] fileSystemRepresentation];
if (str != nil) strncpy(Config.Mcd1, str, MAXPATHLEN);
- url = [supportURL URLByAppendingPathComponent:@"Pcsxr/Memory Cards/Mcd002.mcr"];
+ url = [MemCardPath URLByAppendingPathComponent:@"Mcd002.mcr"];
str = [[url path] fileSystemRepresentation];
if (str != nil) strncpy(Config.Mcd2, str, MAXPATHLEN);
- url = [supportURL URLByAppendingPathComponent:@"Pcsxr/Bios"];
+ url = [PcsxrAppSupport URLByAppendingPathComponent:@"Bios"];
str = [[url path] fileSystemRepresentation];
if (str != nil) strncpy(Config.BiosDir, str, MAXPATHLEN);
- url = [supportURL URLByAppendingPathComponent:@"Pcsxr/Patches"];
+ url = [PcsxrAppSupport URLByAppendingPathComponent:@"Patches"];
str = [[url path] fileSystemRepresentation];
if (str != nil) strncpy(Config.PatchesDir, str, MAXPATHLEN);
} else {