From 4d55a8b8254dff61fdc7b1959f6aef7eafbd9439 Mon Sep 17 00:00:00 2001 From: "SND\\edgbla_cp" Date: Wed, 9 Nov 2011 20:49:54 +0000 Subject: Patch 10767 (Durandal_1707). git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72138 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PluginList.m | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'macosx/PluginList.m') diff --git a/macosx/PluginList.m b/macosx/PluginList.m index 3df8ea4d..53422b49 100644 --- a/macosx/PluginList.m +++ b/macosx/PluginList.m @@ -35,7 +35,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD}; plugins = [[NSMutableArray alloc] initWithCapacity: 20]; - dir = [NSString stringWithCString:Config.PluginsDir]; + dir = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:Config.PluginsDir length:strlen(Config.PluginsDir)]; dirEnum = [[NSFileManager defaultManager] enumeratorAtPath:dir]; while (pname = [dirEnum nextObject]) { @@ -87,7 +87,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD}; - (id)init { - int i; + NSUInteger i; if (!(self = [super init])) return nil; @@ -98,7 +98,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD}; activeGpuPlugin = activeSpuPlugin = activeCdrPlugin = activePadPlugin = nil; missingPlugins = NO; - for (i=0; i