summaryrefslogtreecommitdiff
path: root/macosx/PcsxrDiscHandler.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-31 01:25:35 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-31 01:25:35 +0000
commitf4092dc959d0380d3a440d0bcfcbeef082235916 (patch)
tree077e55a4f0ef32737be1f7505eb2afd155577208 /macosx/PcsxrDiscHandler.m
parent239ab668a152342afd89f8ef8d41bee525b4c0fa (diff)
downloadpcsxr-f4092dc959d0380d3a440d0bcfcbeef082235916.tar.gz
Break out of the file handling loop when we reach a handle.
Work on the Disc handler, making it say that the disc cover was open when loading another disc. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@80820 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrDiscHandler.m')
-rw-r--r--macosx/PcsxrDiscHandler.m10
1 files changed, 8 insertions, 2 deletions
diff --git a/macosx/PcsxrDiscHandler.m b/macosx/PcsxrDiscHandler.m
index 83a83e8d..86efdf73 100644
--- a/macosx/PcsxrDiscHandler.m
+++ b/macosx/PcsxrDiscHandler.m
@@ -24,8 +24,14 @@
- (BOOL)handleFile:(NSString *)theFile
{
- SetIsoFile([theFile fileSystemRepresentation]);
- [EmuThread run];
+ if ([EmuThread active] == TRUE) {
+ SetCdOpenCaseTime(time(NULL) + 2);
+ SetIsoFile([theFile fileSystemRepresentation]);
+ //[EmuThread reset];
+ } else {
+ SetIsoFile([theFile fileSystemRepresentation]);
+ [EmuThread run];
+ }
return YES;
}