From 60e436cbfc50b7ec6af134ecec0d4c19ee6b95ed Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Mon, 8 Jul 2013 03:35:06 +0000 Subject: 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 --- macosx/main.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'macosx/main.m') 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 #import "EmuThread.h" #import "PcsxrController.h" +#import "ConfigurationController.h" #include //#import #import @@ -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() { -- cgit v1.2.3