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
This commit is contained in:
SND\MaddTheSane_cp 2013-05-29 05:12:52 +00:00
parent 0933ee6152
commit c6fe359a59

View File

@ -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);