From 946e44f786311b367a0f66de424e42330de7cbc0 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Mon, 2 Nov 2009 12:23:10 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@34885 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PluginController.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'macosx/PluginController.m') diff --git a/macosx/PluginController.m b/macosx/PluginController.m index a77f8850..1b4d1e79 100644 --- a/macosx/PluginController.m +++ b/macosx/PluginController.m @@ -1,5 +1,6 @@ #import "PluginController.h" #import "PcsxPlugin.h" +#import "PcsxController.h" @implementation PluginController @@ -22,14 +23,14 @@ int index = [pluginMenu indexOfSelectedItem]; if (index != -1) { PcsxPlugin *plugin = [plugins objectAtIndex:index]; - + if (![[PluginList list] setActivePlugin:plugin forType:pluginType]) { - /* plugin won't initialize */ + /* plugin won't initialize */ } - + // write selection to defaults [[NSUserDefaults standardUserDefaults] setObject:[plugin path] forKey:defaultKey]; - + // set button states [aboutButton setEnabled:[plugin hasAboutAs:pluginType]]; [configureButton setEnabled:[plugin hasConfigureAs:pluginType]]; @@ -61,7 +62,7 @@ // add the menu entries for (i=0; i<[plugins count]; i++) { [pluginMenu addItemWithTitle:[[plugins objectAtIndex:i] description]]; - + // make sure the currently selected is set as such if ([sel isEqualToString:[[plugins objectAtIndex:i] path]]) { [pluginMenu selectItemAtIndex:i]; -- cgit v1.2.3