From 7bbdf20d981c5fc8691e95bf0da2f71158058c97 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 8 Dec 2011 03:20:28 +0000 Subject: Let's make sure the memory card is created before posting a notification about it. Declare "_MACOSX" on the XGL plug-in. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72996 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/ConfigurationController.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'macosx/ConfigurationController.m') diff --git a/macosx/ConfigurationController.m b/macosx/ConfigurationController.m index a89775e3..4460e396 100644 --- a/macosx/ConfigurationController.m +++ b/macosx/ConfigurationController.m @@ -99,10 +99,13 @@ NSString *memChangeNotifier = @"PcsxrMemoryCardDidChangeNotifier"; if ([openDlg runModal] == NSFileHandlingPanelOKButton) { NSString *mcdPath = [[openDlg URL] path]; + + //Workaround/kludge to make sure we create a memory card before posting a notification + strcpy(mcd, [mcdPath fileSystemRepresentation]); + + CreateMcd(mcd); [ConfigurationController setMemoryCard:tag toPath:mcdPath]; - - CreateMcd(mcd); } [openDlg release]; } -- cgit v1.2.3