diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-12-20 22:42:36 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-12-20 22:42:36 +0000 |
| commit | ec03001040a634987b658e4b79e377ec4fd2e959 (patch) | |
| tree | d7a140be2703c4a92de736203ef02c70afb57787 /macosx/PcsxrController.m | |
| parent | b35a42b0a1f8424b3e92b66bd315274ce748c2bb (diff) | |
| download | pcsxr-ec03001040a634987b658e4b79e377ec4fd2e959.tar.gz | |
Add a recent menu.
Ignoring Xcode 4 generated files.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@81905 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrController.m')
| -rw-r--r-- | macosx/PcsxrController.m | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/macosx/PcsxrController.m b/macosx/PcsxrController.m index f23d7dfd..da5de3d3 100644 --- a/macosx/PcsxrController.m +++ b/macosx/PcsxrController.m @@ -195,9 +195,9 @@ static NSString *HandleBinCue(NSString *toHandle) [openDlg setAllowedFileTypes:[PcsxrDiscHandler supportedUTIs]]; if ([openDlg runModal] == NSFileHandlingPanelOKButton) { - NSArray* urls = [openDlg URLs]; - SetIsoFile((const char *)[HandleBinCue([[urls objectAtIndex:0] path]) fileSystemRepresentation]); - [EmuThread run]; + NSURL *url = [[openDlg URLs] objectAtIndex:0]; + [recentItems addRecentItem:url]; + [self runURL:url]; } [openDlg release]; } @@ -208,6 +208,12 @@ static NSString *HandleBinCue(NSString *toHandle) [EmuThread runBios]; } +- (void)runURL:(NSURL*)url +{ + SetIsoFile((const char *)[HandleBinCue([url path]) fileSystemRepresentation]); + [EmuThread run]; +} + - (IBAction)freeze:(id)sender { NSInteger num = [sender tag]; |
