diff options
Diffstat (limited to 'macosx/main.m')
| -rwxr-xr-x | macosx/main.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/macosx/main.m b/macosx/main.m index 595475dd..700bfdda 100755 --- a/macosx/main.m +++ b/macosx/main.m @@ -8,6 +8,7 @@ #import <Cocoa/Cocoa.h> #import "EmuThread.h" #import "PcsxrController.h" +#import "ConfigurationController.h" #include <dlfcn.h> //#import <sys/param.h> #import <unistd.h> @@ -187,9 +188,12 @@ void SysClose() { sysInited = NO; detachHotkeys(); + if (((PcsxrController *)[NSApp delegate]).endAtEmuClose) { [NSApp stop:nil]; } + //Tell the memory card manager that the memory cards changed. + [[NSNotificationCenter defaultCenter] postNotificationName:memChangeNotifier object:nil userInfo:[NSDictionary dictionaryWithObject:@3 forKey:memCardChangeNumberKey]]; } void OnFile_Exit() { |
