diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-08 03:35:06 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-07-08 03:35:06 +0000 |
| commit | 60e436cbfc50b7ec6af134ecec0d4c19ee6b95ed (patch) | |
| tree | 874d0e8e909ea97c63fa08684fa8cad71c4ddda4 /macosx/main.m | |
| parent | 1be32b430bb24d88642409f6b80338e36879c342 (diff) | |
| download | pcsxr-60e436cbfc50b7ec6af134ecec0d4c19ee6b95ed.tar.gz | |
Implement compaction of memory cards.
Other assorted bug fixes.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85890 e17a0e51-4ae3-4d35-97c3-1a29b211df97
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() { |
