summaryrefslogtreecommitdiff
path: root/macosx/PcsxrPluginHandler.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-06-26 01:05:20 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-06-26 01:05:20 +0000
commit21b5b2706fdd83fc225d340a0e347d7d0d0c000c (patch)
treee4428a5e49d685082ece3811efaed547cee2550f /macosx/PcsxrPluginHandler.m
parent6349404da5984e6785574c96db3eb3a08a515b37 (diff)
downloadpcsxr-21b5b2706fdd83fc225d340a0e347d7d0d0c000c.tar.gz
Don't open plug-ins or memory cards if the emulator is running.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85559 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrPluginHandler.m')
-rwxr-xr-xmacosx/PcsxrPluginHandler.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/PcsxrPluginHandler.m b/macosx/PcsxrPluginHandler.m
index 7fde32c9..07ecd3b2 100755
--- a/macosx/PcsxrPluginHandler.m
+++ b/macosx/PcsxrPluginHandler.m
@@ -7,6 +7,7 @@
//
#import "PcsxrPluginHandler.h"
+#import "EmuThread.h"
#import "ARCBridge.h"
@implementation PcsxrPluginHandler
@@ -55,6 +56,10 @@
- (BOOL)handleFile:(NSString *)theFile
{
+ if ([EmuThread active]) {
+ return NO;
+ }
+
if (![self window])
[NSBundle loadNibNamed:@"AddPluginSheet" owner:self];