summaryrefslogtreecommitdiff
path: root/macosx/PcsxController.m
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-01-23 08:44:23 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-01-23 08:44:23 +0000
commit912c53cda0997e17d32d0b854823c3334b419db5 (patch)
tree158f8a7ae9c68235fe4e1c14fa1efe5533242dc8 /macosx/PcsxController.m
parentcd40452e610e32935cfc5bae96cc77209f79e7d9 (diff)
downloadpcsxr-912c53cda0997e17d32d0b854823c3334b419db5.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@40648 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxController.m')
-rw-r--r--macosx/PcsxController.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/macosx/PcsxController.m b/macosx/PcsxController.m
index db16729b..05a6b867 100644
--- a/macosx/PcsxController.m
+++ b/macosx/PcsxController.m
@@ -372,6 +372,10 @@ NSString *saveStatePath;
if (![dfm fileExistsAtPath:path isDirectory:&dir])
[dfm createDirectoryAtPath:path attributes:nil];
+ path = [NSString stringWithFormat:@"%@/Pcsx/Patches", supportPath];
+ if (![dfm fileExistsAtPath:path isDirectory:&dir])
+ [dfm createDirectoryAtPath:path attributes:nil];
+
saveStatePath = [[NSString stringWithFormat:@"%@/Pcsx/Save States", supportPath] retain];
if (![dfm fileExistsAtPath:saveStatePath isDirectory:&dir])
[dfm createDirectoryAtPath:saveStatePath attributes:nil];
@@ -387,8 +391,13 @@ NSString *saveStatePath;
path = [NSString stringWithFormat:@"%@/Pcsx/Bios/", supportPath];
str = [path fileSystemRepresentation];
if (str != nil) strncpy(Config.BiosDir, str, 255);
+
+ path = [NSString stringWithFormat:@"%@/Pcsx/Patches/", supportPath];
+ str = [path fileSystemRepresentation];
+ if (str != nil) strncpy(Config.PatchesDir, str, 255);
} else {
strcpy(Config.BiosDir, "Bios/");
+ strcpy(Config.PatchesDir, "Patches/");
saveStatePath = @"sstates";
[saveStatePath retain];