diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-05-29 05:12:52 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-05-29 05:12:52 +0000 |
| commit | c6fe359a590ef732d9450fde99964aa70f859803 (patch) | |
| tree | 054a2ce73227deba1805b76bc13d6480ac8cc69a /macosx/CheatController.m | |
| parent | 0933ee6152c14c5784f62b16136a23684eb0c8ef (diff) | |
| download | pcsxr-c6fe359a590ef732d9450fde99964aa70f859803.tar.gz | |
Since we haven't stated we can't open more than one file in OS X' cheat open file box, handle if we open more than one file.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85000 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/CheatController.m')
| -rw-r--r-- | macosx/CheatController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/CheatController.m b/macosx/CheatController.m index 81fe9544..edc23a98 100644 --- a/macosx/CheatController.m +++ b/macosx/CheatController.m @@ -60,7 +60,9 @@ if ([openDlg runModal] == NSFileHandlingPanelOKButton) { NSArray *files = [openDlg URLs]; - LoadCheats((const char *)[[[files objectAtIndex:0] path] fileSystemRepresentation]); + for (NSURL *theURL in files) { + LoadCheats([[theURL path] fileSystemRepresentation]); + } [self refresh]; } RELEASEOBJ(openDlg); |
