diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-10-13 20:39:01 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-10-13 20:39:01 +0000 |
| commit | 949b0bc5002cd94dcbf37ef23f6c32d41d62c704 (patch) | |
| tree | d2ca3afb1b6daa71215e0983d62315f9818e9e19 /macosx/PluginList.m | |
| parent | 221dab875d4756a11ba1418a75a05b8b486968e7 (diff) | |
| download | pcsxr-949b0bc5002cd94dcbf37ef23f6c32d41d62c704.tar.gz | |
Fixing naming convention on a Cocoa function.
Fixing string format in a Cocoa string.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@80390 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PluginList.m')
| -rw-r--r-- | macosx/PluginList.m | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/macosx/PluginList.m b/macosx/PluginList.m index 7f340f65..72ec6aa0 100644 --- a/macosx/PluginList.m +++ b/macosx/PluginList.m @@ -153,7 +153,7 @@ const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, NSUInteger i; // verify that the ones that are in list still works - for (i=0; i<[pluginList count]; i++) { + for (i=0; i < [pluginList count]; i++) { if (![[pluginList objectAtIndex:i] verifyOK]) { [pluginList removeObjectAtIndex:i]; i--; } @@ -183,13 +183,13 @@ const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, // check the we have the needed plugins missingPlugins = NO; - for (i=0; i<sizeof(*typeList); i++) { + for (i=0; i < sizeof(*typeList); i++) { PcsxrPlugin *plugin = [self activePluginForType:typeList[i]]; if (nil == plugin) { NSArray *list = [self pluginsForType:typeList[i]]; NSUInteger j; - for (j=0; j<[list count]; j++) { + for (j=0; j < [list count]; j++) { if ([self setActivePlugin:[list objectAtIndex:j] forType:typeList[i]]) break; } @@ -235,11 +235,11 @@ const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, { BOOL bad = NO; - if ([activeGpuPlugin initAs:PSE_LT_GPU] != 0) bad = YES; - if ([activeSpuPlugin initAs:PSE_LT_SPU] != 0) bad = YES; - if ([activeCdrPlugin initAs:PSE_LT_CDR] != 0) bad = YES; - if ([activePadPlugin initAs:PSE_LT_PAD] != 0) bad = YES; - if ([activeNetPlugin initAs:PSE_LT_NET] != 0) bad = YES; + if ([activeGpuPlugin runAs:PSE_LT_GPU] != 0) bad = YES; + if ([activeSpuPlugin runAs:PSE_LT_SPU] != 0) bad = YES; + if ([activeCdrPlugin runAs:PSE_LT_CDR] != 0) bad = YES; + if ([activePadPlugin runAs:PSE_LT_PAD] != 0) bad = YES; + if ([activeNetPlugin runAs:PSE_LT_NET] != 0) bad = YES; return !bad; } @@ -289,7 +289,7 @@ const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, } *pluginPtr = [plugin retain]; if (*pluginPtr) { - if ([*pluginPtr initAs:type] != 0) { + if ([*pluginPtr runAs:type] != 0) { [*pluginPtr release]; *pluginPtr = nil; } |
