summaryrefslogtreecommitdiff
path: root/macosx/PcsxrDiscHandler.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/PcsxrDiscHandler.m')
-rwxr-xr-xmacosx/PcsxrDiscHandler.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/macosx/PcsxrDiscHandler.m b/macosx/PcsxrDiscHandler.m
index 79c65704..8d83c8f9 100755
--- a/macosx/PcsxrDiscHandler.m
+++ b/macosx/PcsxrDiscHandler.m
@@ -10,6 +10,8 @@
#import "EmuThread.h"
#include "psxcommon.h"
#include "plugins.h"
+#import "RecentItemsMenu.h"
+#import "PcsxrController.h"
@implementation PcsxrDiscHandler
@@ -24,7 +26,9 @@
- (BOOL)handleFile:(NSString *)theFile
{
- if ([EmuThread active] == TRUE) {
+ PcsxrController *appDelegate = [NSApp delegate];
+ [[appDelegate recentItems] addRecentItem:[NSURL fileURLWithPath:theFile]];
+ if ([EmuThread active] == YES) {
SetCdOpenCaseTime(time(NULL) + 2);
SetIsoFile([theFile fileSystemRepresentation]);
//[EmuThread reset];