diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-02 12:23:10 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-02 12:23:10 +0000 |
| commit | 946e44f786311b367a0f66de424e42330de7cbc0 (patch) | |
| tree | 54d98dddc2bb9a4aea007b08c79ea7723a3e507d /macosx/PluginController.m | |
| parent | 3c791667648a61138c29f8fec56a38d9c343e97a (diff) | |
| download | pcsxr-946e44f786311b367a0f66de424e42330de7cbc0.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@34885 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PluginController.m')
| -rw-r--r-- | macosx/PluginController.m | 11 |
1 files changed, 6 insertions, 5 deletions
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]; |
