From 912c53cda0997e17d32d0b854823c3334b419db5 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sat, 23 Jan 2010 08:44:23 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@40648 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PcsxController.m | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'macosx/PcsxController.m') 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]; -- cgit v1.2.3