From c6c9d266fad98310bb6f0118362d8dc7e60ecfae Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Tue, 9 Jul 2013 09:33:55 +0000 Subject: Make the bladesio1 driver work on OS X: Fix a bug where the wrong plug-in was being used in place of sio1, causing PCSXR to complain. Fix a bug where bladesio1's config window would cause PCSXR to crash. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85936 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- .../English.lproj/Bladesio1PluginConfig.xib | 176 ++++++++++----------- .../Bladesio1/macsrc/PluginConfigController.m | 17 +- 2 files changed, 100 insertions(+), 93 deletions(-) (limited to 'macosx/plugins') diff --git a/macosx/plugins/Bladesio1/English.lproj/Bladesio1PluginConfig.xib b/macosx/plugins/Bladesio1/English.lproj/Bladesio1PluginConfig.xib index 91239800..2ae3f8cf 100644 --- a/macosx/plugins/Bladesio1/English.lproj/Bladesio1PluginConfig.xib +++ b/macosx/plugins/Bladesio1/English.lproj/Bladesio1PluginConfig.xib @@ -1315,78 +1315,78 @@ - 224 - - + 253 + + - 225 - - + 246 + + - 226 - - + 245 + + - 227 - - + 244 + + - 228 - - + 252 + + - 229 - - + 248 + + - 230 - - + 247 + + - 232 - - + 251 + + - 233 - - + 249 + + - 234 - - + 243 + + - 235 - - + 250 + + - 236 - - + 242 + + - 237 - + 256 + - 238 - + 239 + - 239 - + 233 + @@ -1395,84 +1395,84 @@ - 241 - + 238 + - 242 - - + 236 + + - 243 - - + 234 + + - 244 - - + 228 + + - 245 - - + 227 + + - 247 - - + 235 + + - 250 - - + 230 + + - 251 - - + 229 + + - 252 - - + 237 + + - 253 - - + 232 + + - 254 - - + 226 + + - 255 - - + 241 + + - 256 - + 225 + - 246 - - + 255 + + - 249 - - + 254 + + - 248 - - + 224 + + diff --git a/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m index dbc85174..b1b4c08e 100755 --- a/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m +++ b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m @@ -74,12 +74,19 @@ void AboutDlgProc() void ConfDlgProc() { - NSWindow *window; - - if (windowController == nil) { - windowController = [[PluginConfigController alloc] initWithWindowNibName:@"Bladesio1PluginConfig"]; + __block NSWindow *window; + __block PluginConfigController *tmpWindowController = nil; + + //We need this block due to the xib's use of auto layout + dispatch_sync(dispatch_get_main_queue(), ^{ + if (windowController == nil) { + tmpWindowController = [[PluginConfigController alloc] initWithWindowNibName:@"Bladesio1PluginConfig"]; + } + window = [(windowController ? windowController : tmpWindowController) window]; + }); + if (!windowController) { + windowController = tmpWindowController; } - window = [windowController window]; [windowController loadValues]; -- cgit v1.2.3