From 21b5b2706fdd83fc225d340a0e347d7d0d0c000c Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Wed, 26 Jun 2013 01:05:20 +0000 Subject: 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 --- macosx/PcsxrPluginHandler.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'macosx/PcsxrPluginHandler.m') 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]; -- cgit v1.2.3