From 7a613cfccd715ef0b9daa7e49fee51349367b9c8 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Wed, 10 Oct 2012 00:04:58 +0000 Subject: Mainly spacing changes, and a few OCD things. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@80323 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PcsxrController.m | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'macosx/PcsxrController.m') 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 { -- cgit v1.2.3