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:
parent
0933ee6152
commit
c6fe359a59
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user