summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-12 17:25:58 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-12 17:25:58 +0000
commitfed503f01540f43db73445247e9bc332333b1da6 (patch)
tree15d5671462ca1d7564eb5ef9a23015c8dd34d70d
parentd9504fef70f8c9f371fdd210b1c38502aee6e097 (diff)
downloadpcsxr-fed503f01540f43db73445247e9bc332333b1da6.tar.gz
Only set the ISO in the disc handler when the emulator is running if we are using an ISO.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82825 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rwxr-xr-xmacosx/PcsxrDiscHandler.m12
1 files changed, 8 insertions, 4 deletions
diff --git a/macosx/PcsxrDiscHandler.m b/macosx/PcsxrDiscHandler.m
index 8d83c8f9..025f5fdb 100755
--- a/macosx/PcsxrDiscHandler.m
+++ b/macosx/PcsxrDiscHandler.m
@@ -27,15 +27,19 @@
- (BOOL)handleFile:(NSString *)theFile
{
PcsxrController *appDelegate = [NSApp delegate];
- [[appDelegate recentItems] addRecentItem:[NSURL fileURLWithPath:theFile]];
if ([EmuThread active] == YES) {
- SetCdOpenCaseTime(time(NULL) + 2);
- SetIsoFile([theFile fileSystemRepresentation]);
- //[EmuThread reset];
+ if (UsingIso()) {
+ SetCdOpenCaseTime(time(NULL) + 2);
+ SetIsoFile([theFile fileSystemRepresentation]);
+ //[EmuThread reset];
+ } else {
+ return NO;
+ }
} else {
SetIsoFile([theFile fileSystemRepresentation]);
[EmuThread run];
}
+ [[appDelegate recentItems] addRecentItem:[NSURL fileURLWithPath:theFile]];
return YES;
}