diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-02 12:23:10 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-02 12:23:10 +0000 |
| commit | 946e44f786311b367a0f66de424e42330de7cbc0 (patch) | |
| tree | 54d98dddc2bb9a4aea007b08c79ea7723a3e507d /macosx/PcsxController.m | |
| parent | 3c791667648a61138c29f8fec56a38d9c343e97a (diff) | |
| download | pcsxr-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.m | 22 |
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; } |
