summaryrefslogtreecommitdiff
path: root/macosx/PluginList.m
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-06-08 09:27:25 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-06-08 09:27:25 +0000
commit5f868fa161d5827e45a060a0b17b44a997625315 (patch)
tree1694ae3dfcb0189abdf098edbf6dae0bf2a18e4d /macosx/PluginList.m
parentc7eb23ccf1813fb4ca47c309c40baff308151237 (diff)
downloadpcsxr-5f868fa161d5827e45a060a0b17b44a997625315.tar.gz
Rebranding.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@67621 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PluginList.m')
-rw-r--r--macosx/PluginList.m26
1 files changed, 13 insertions, 13 deletions
diff --git a/macosx/PluginList.m b/macosx/PluginList.m
index 62c877c1..3df8ea4d 100644
--- a/macosx/PluginList.m
+++ b/macosx/PluginList.m
@@ -1,6 +1,6 @@
//
// PluginList.m
-// Pcsx
+// Pcsxr
//
// Created by Gil Pedersen on Sun Sep 21 2003.
// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
@@ -8,7 +8,7 @@
#import "EmuThread.h"
#import "PluginList.h"
-#import "PcsxPlugin.h"
+#import "PcsxrPlugin.h"
#include "psxcommon.h"
#include "plugins.h"
@@ -44,7 +44,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD};
[dirEnum skipDescendents]; /* don't enumerate this
directory */
- PcsxPlugin *plugin = [[PcsxPlugin alloc] initWithPath:pname];
+ PcsxrPlugin *plugin = [[PcsxrPlugin alloc] initWithPath:pname];
if (plugin != nil) {
[plugins addObject:plugin];
}
@@ -63,7 +63,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD};
type = typeMask;
for (i=0; i<[plugins count]; i++) {
- PcsxPlugin *plugin = [plugins objectAtIndex:i];
+ PcsxrPlugin *plugin = [plugins objectAtIndex:i];
if ([plugin getType] == type) {
[list addObject:plugin];
}
@@ -99,7 +99,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD};
missingPlugins = NO;
for (i=0; i<sizeof(*typeList); i++) {
- NSString *path = [defaults stringForKey:[PcsxPlugin getDefaultKeyForType:typeList[i]]];
+ NSString *path = [defaults stringForKey:[PcsxrPlugin getDefaultKeyForType:typeList[i]]];
if (nil == path) {
missingPlugins = YES;
continue;
@@ -108,7 +108,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD};
continue;
if (![self hasPluginAtPath:path]) {
- PcsxPlugin *plugin = [[PcsxPlugin alloc] initWithPath:path];
+ PcsxrPlugin *plugin = [[PcsxrPlugin alloc] initWithPath:path];
if (plugin) {
[pluginList addObject:plugin];
if (![self setActivePlugin:plugin forType:typeList[i]])
@@ -167,7 +167,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD};
directory */
if (![self hasPluginAtPath:pname]) {
- PcsxPlugin *plugin = [[PcsxPlugin alloc] initWithPath:pname];
+ PcsxrPlugin *plugin = [[PcsxrPlugin alloc] initWithPath:pname];
if (plugin != nil) {
[pluginList addObject:plugin];
}
@@ -178,7 +178,7 @@ const static int typeList[4] = {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++) {
- PcsxPlugin *plugin = [self activePluginForType:typeList[i]];
+ PcsxrPlugin *plugin = [self activePluginForType:typeList[i]];
if (nil == plugin) {
NSArray *list = [self pluginsForType:typeList[i]];
int j;
@@ -199,7 +199,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD};
int i;
for (i=0; i<[pluginList count]; i++) {
- PcsxPlugin *plugin = [pluginList objectAtIndex:i];
+ PcsxrPlugin *plugin = [pluginList objectAtIndex:i];
if ([plugin getType] & typeMask) {
[types addObject:plugin];
@@ -241,7 +241,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD};
return !bad;
}
-- (PcsxPlugin *)activePluginForType:(int)type
+- (PcsxrPlugin *)activePluginForType:(int)type
{
switch (type) {
case PSE_LT_GPU: return activeGpuPlugin;
@@ -254,9 +254,9 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD};
return nil;
}
-- (BOOL)setActivePlugin:(PcsxPlugin *)plugin forType:(int)type
+- (BOOL)setActivePlugin:(PcsxrPlugin *)plugin forType:(int)type
{
- PcsxPlugin **pluginPtr;
+ PcsxrPlugin **pluginPtr;
switch (type) {
case PSE_LT_GPU: pluginPtr = &activeGpuPlugin; break;
case PSE_LT_CDR: pluginPtr = &activeCdrPlugin; break;
@@ -303,7 +303,7 @@ const static int typeList[4] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD};
str = "Invalid Plugin";
}
- char **dst = [PcsxPlugin getConfigEntriesForType:type];
+ char **dst = [PcsxrPlugin getConfigEntriesForType:type];
while (*dst) {
strncpy(*dst, str, 255);
dst++;