summaryrefslogtreecommitdiff
path: root/macosx/PcsxController.m
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-11-02 12:23:10 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-11-02 12:23:10 +0000
commit946e44f786311b367a0f66de424e42330de7cbc0 (patch)
tree54d98dddc2bb9a4aea007b08c79ea7723a3e507d /macosx/PcsxController.m
parent3c791667648a61138c29f8fec56a38d9c343e97a (diff)
downloadpcsxr-946e44f786311b367a0f66de424e42330de7cbc0.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@34885 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxController.m')
-rw-r--r--macosx/PcsxController.m22
1 files changed, 17 insertions, 5 deletions
diff --git a/macosx/PcsxController.m b/macosx/PcsxController.m
index 3d12ee66..4ff909b7 100644
--- a/macosx/PcsxController.m
+++ b/macosx/PcsxController.m
@@ -19,7 +19,7 @@ NSString *saveStatePath;
NSMutableString *deviceName;
NSTask *ejectTask;
NSRange rdiskRange;
-
+
BOOL wasPaused = [EmuThread pauseSafe];
/* close connection to current cd */
@@ -92,7 +92,7 @@ NSString *saveStatePath;
}
preferenceWindow = [preferencesController window];
}
-
+
/* show the window */
[preferenceWindow makeKeyAndOrderFront:self];
[preferencesController showWindow:self];
@@ -157,8 +157,14 @@ NSString *saveStatePath;
[menuItem action] == @selector(fullscreen:))
return [EmuThread active];
- if ([menuItem action] == @selector(runCD:) || [menuItem action] == @selector(runIso:))
- return ![EmuThread active];
+ if ([menuItem action] == @selector(runCD:) || [menuItem action] == @selector(runIso:)) {
+ if (preferenceWindow != nil) {
+ if ([preferenceWindow isVisible]) {
+ return NO;
+ }
+ }
+ return ![EmuThread active];
+ }
if ([menuItem action] == @selector(defrost:)) {
if (![EmuThread active])
@@ -167,7 +173,13 @@ NSString *saveStatePath;
NSString *path = [NSString stringWithFormat:@"%@/%s-%3.3d.pcsxstate", saveStatePath, CdromId, [menuItem tag]];
return (CheckState((char *)[path fileSystemRepresentation]) == 0);
}
-
+
+ if ([menuItem action] == @selector(preferences:)) {
+ if ([EmuThread active])
+ return NO;
+ return YES;
+ }
+
return YES;
}