diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-17 20:41:31 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-17 20:41:31 +0000 |
| commit | a603862e8da2d061f728a373acb503fa374b8c6b (patch) | |
| tree | ef5f8956e5b6a2977d7ff9229df4a799bbfd1dd0 /macosx/PcsxrController.m | |
| parent | b6f15852f36e8d017a275bc3727c5dcab1846d29 (diff) | |
| download | pcsxr-a603862e8da2d061f728a373acb503fa374b8c6b.tar.gz | |
Multiple plug-in directories support for Mac OS X. It could be better: currently it uses hierarchy with the built-in plug-in path at the bottom and the user plug-in path at the top. I should probably do it by plug-in version.
PlayStation plug-in double-clicked on Mac OS X are now moved to the user directory instead of the App's built-in plug-in directory. the previous method could cause problems if write support wasn't set in PCSXR, such as if it was created from a different user.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@73439 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrController.m')
| -rw-r--r-- | macosx/PcsxrController.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/macosx/PcsxrController.m b/macosx/PcsxrController.m index 72feab3a..dea933b3 100644 --- a/macosx/PcsxrController.m +++ b/macosx/PcsxrController.m @@ -408,6 +408,10 @@ static NSString *HandleBinCue(NSString *toHandle) url = [supportURL URLByAppendingPathComponent:@"Pcsxr/Patches"]; if (![url checkResourceIsReachableAndReturnError:NULL]) [manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL]; + + url = [supportURL URLByAppendingPathComponent:@"Pcsxr/PlugIns"]; + if (![url checkResourceIsReachableAndReturnError:NULL]) + [manager createDirectoryAtPath:[url path] withIntermediateDirectories:YES attributes:nil error:NULL]; saveStatePath = [[[supportURL URLByAppendingPathComponent:@"Pcsxr/Save States"] path] copy]; if (![manager fileExistsAtPath:saveStatePath isDirectory:&dir]) |
