summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFXVideo
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-17 01:58:25 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-17 01:58:25 +0000
commit3043ded6406ce8bb06392b2c6351eb7596658d11 (patch)
tree7b8976d506d1033a7e628a1a12c9ef7e0b24f5eb /macosx/plugins/DFXVideo
parentac860b2d845ab7c90a7388de026cc63074791350 (diff)
downloadpcsxr-3043ded6406ce8bb06392b2c6351eb7596658d11.tar.gz
First steps for localization support for Mac OS X/Cocoa, including:
Localizable.strings files for each plug-in. Try to get localizable string from a c string (see Pcsxr_locale_text in main.m). Each Mac plug-in now has a Principal class declaration in their Info.plist Also updated the memory card extensions git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72361 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFXVideo')
-rw-r--r--macosx/plugins/DFXVideo/English.lproj/Localizable.strings11
-rw-r--r--macosx/plugins/DFXVideo/Info.plist2
-rw-r--r--macosx/plugins/DFXVideo/PeopsSoftGPU.xcodeproj/project.pbxproj30
-rw-r--r--macosx/plugins/DFXVideo/macsrc/PluginConfigController.m10
4 files changed, 37 insertions, 16 deletions
diff --git a/macosx/plugins/DFXVideo/English.lproj/Localizable.strings b/macosx/plugins/DFXVideo/English.lproj/Localizable.strings
new file mode 100644
index 00000000..1eb39163
--- /dev/null
+++ b/macosx/plugins/DFXVideo/English.lproj/Localizable.strings
@@ -0,0 +1,11 @@
+/*
+ Localizable.strings
+ PeopsSoftGPU
+
+ Created by C.W. Betts on 11/16/11.
+ Copyright 2011 __MyCompanyName__. All rights reserved.
+ */
+
+"Pete Bernert and the P.E.Op.S. team" = "Pete Bernert and the P.E.Op.S. team";
+"SoftGL Driver" = "SoftGL Driver";
+"P.E.Op.S. SoftGL Driver V1.17\nCoded by Pete Bernert and the P.E.Op.S. team\n" = "P.E.Op.S. SoftGL Driver V1.17\nCoded by Pete Bernert and the P.E.Op.S. team\n"; \ No newline at end of file
diff --git a/macosx/plugins/DFXVideo/Info.plist b/macosx/plugins/DFXVideo/Info.plist
index aeec11cf..d290e2e8 100644
--- a/macosx/plugins/DFXVideo/Info.plist
+++ b/macosx/plugins/DFXVideo/Info.plist
@@ -16,5 +16,7 @@
<string>PSGl</string>
<key>CFBundleVersion</key>
<string>1.16</string>
+ <key>NSPrincipalClass</key>
+ <string>NetSfPeopsSoftGPUPluginConfigController</string>
</dict>
</plist>
diff --git a/macosx/plugins/DFXVideo/PeopsSoftGPU.xcodeproj/project.pbxproj b/macosx/plugins/DFXVideo/PeopsSoftGPU.xcodeproj/project.pbxproj
index 72dd7bc9..67b7e95a 100644
--- a/macosx/plugins/DFXVideo/PeopsSoftGPU.xcodeproj/project.pbxproj
+++ b/macosx/plugins/DFXVideo/PeopsSoftGPU.xcodeproj/project.pbxproj
@@ -18,6 +18,7 @@
2BB260A90777462E00F6854C /* PluginConfigController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2BB260A70777462E00F6854C /* PluginConfigController.m */; };
2BD2E769077AF53E00657C69 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 2BD2E767077AF53E00657C69 /* Credits.rtf */; };
2BD7C777076E1FAB000F05ED /* GLUT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B51949E06B3D2D200744730 /* GLUT.framework */; };
+ 552E4CAE1474730B00FB231F /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 552E4CB01474730B00FB231F /* Localizable.strings */; };
71E9EC06109F24E700E98D1D /* fps.c in Sources */ = {isa = PBXBuildFile; fileRef = 71E9EBF4109F24E600E98D1D /* fps.c */; };
71E9EC08109F24E700E98D1D /* gpu.c in Sources */ = {isa = PBXBuildFile; fileRef = 71E9EBF6109F24E600E98D1D /* gpu.c */; };
71E9EC0B109F24E700E98D1D /* key.c in Sources */ = {isa = PBXBuildFile; fileRef = 71E9EBF9109F24E600E98D1D /* key.c */; };
@@ -46,6 +47,7 @@
2BB260A60777462E00F6854C /* PluginConfigController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = PluginConfigController.h; path = macsrc/PluginConfigController.h; sourceTree = SOURCE_ROOT; };
2BB260A70777462E00F6854C /* PluginConfigController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = PluginConfigController.m; path = macsrc/PluginConfigController.m; sourceTree = SOURCE_ROOT; };
2BD2E768077AF53E00657C69 /* English */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = English; path = English.lproj/Credits.rtf; sourceTree = "<group>"; };
+ 552E4CAF1474730B00FB231F /* English */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; };
71E9EBF1109F24E600E98D1D /* cfg.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = cfg.h; path = ../../../plugins/dfxvideo/cfg.h; sourceTree = SOURCE_ROOT; };
71E9EBF2109F24E600E98D1D /* draw.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = draw.h; path = ../../../plugins/dfxvideo/draw.h; sourceTree = SOURCE_ROOT; };
71E9EBF3109F24E600E98D1D /* externals.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = externals.h; path = ../../../plugins/dfxvideo/externals.h; sourceTree = SOURCE_ROOT; };
@@ -131,6 +133,7 @@
28586CC714651E9B0082B8EC /* NetSfPeopsSoftGPUConfig.xib */,
28586CCA14651EAB0082B8EC /* NetSfPeopsSoftGPUInterface.xib */,
2BD2E767077AF53E00657C69 /* Credits.rtf */,
+ 552E4CB01474730B00FB231F /* Localizable.strings */,
2B038C05069183300082466B /* InfoPlist.strings */,
);
name = Resources;
@@ -218,6 +221,7 @@
2BD2E769077AF53E00657C69 /* Credits.rtf in Resources */,
28586CC914651E9B0082B8EC /* NetSfPeopsSoftGPUConfig.xib in Resources */,
28586CCB14651EAB0082B8EC /* NetSfPeopsSoftGPUInterface.xib in Resources */,
+ 552E4CAE1474730B00FB231F /* Localizable.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -270,6 +274,14 @@
name = Credits.rtf;
sourceTree = "<group>";
};
+ 552E4CB01474730B00FB231F /* Localizable.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 552E4CAF1474730B00FB231F /* English */,
+ );
+ name = Localizable.strings;
+ sourceTree = "<group>";
+ };
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
@@ -277,13 +289,13 @@
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = NO;
- DEBUGGING_SYMBOLS = YES;
GCC_DYNAMIC_NO_PIC = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_OPTIMIZATION_LEVEL = 1;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
GCC_PREPROCESSOR_DEFINITIONS = (
+ "PCSXRPLUG=SoftGL",
_MACGL,
_DARWIN,
);
@@ -291,7 +303,6 @@
GCC_WARN_UNKNOWN_PRAGMAS = NO;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Playstation Emulator Plugins";
- LIBRARY_STYLE = BUNDLE;
OPTIMIZATION_CFLAGS = "-finline-functions -finline-limit=1600 -fomit-frame-pointer -fno-exceptions -funroll-loops -falign-loops=16 -ffast-math";
OTHER_CFLAGS = "-finline-functions";
OTHER_LDFLAGS = (
@@ -303,11 +314,6 @@
PRODUCT_NAME = PeopsSoftGL;
SECTORDER_FLAGS = "";
SYMROOT = ../../build;
- WARNING_CFLAGS = (
- "-Wmost",
- "-Wno-four-char-constants",
- "-Wno-unknown-pragmas",
- );
WRAPPER_EXTENSION = psxplugin;
};
name = Debug;
@@ -316,13 +322,13 @@
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = YES;
- DEBUGGING_SYMBOLS = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
GCC_PREPROCESSOR_DEFINITIONS = (
+ "PCSXRPLUG=SoftGL",
_MACGL,
_DARWIN,
);
@@ -330,7 +336,6 @@
GCC_WARN_UNKNOWN_PRAGMAS = NO;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(USER_LIBRARY_DIR)/Playstation Emulator Plugins";
- LIBRARY_STYLE = BUNDLE;
OPTIMIZATION_CFLAGS = "-finline-functions -finline-limit=1600 -fomit-frame-pointer -fno-exceptions -funroll-loops -falign-loops=16 -ffast-math";
OTHER_LDFLAGS = (
"-framework",
@@ -341,11 +346,6 @@
PRODUCT_NAME = PeopsSoftGL;
SECTORDER_FLAGS = "";
SYMROOT = ../../build;
- WARNING_CFLAGS = (
- "-Wmost",
- "-Wno-four-char-constants",
- "-Wno-unknown-pragmas",
- );
WRAPPER_EXTENSION = psxplugin;
};
name = Release;
@@ -364,7 +364,6 @@
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx10.6;
SYMROOT = ../../build;
- WARNING_CFLAGS = "-Wall";
};
name = Debug;
};
@@ -380,7 +379,6 @@
MACOSX_DEPLOYMENT_TARGET = 10.6;
SDKROOT = macosx10.6;
SYMROOT = ../../build;
- WARNING_CFLAGS = "-Wall";
};
name = Release;
};
diff --git a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m
index 13f9ff6f..86d65015 100644
--- a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m
+++ b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m
@@ -214,3 +214,13 @@ void ReadConfig(void)
}
@end
+
+char* PLUGLOC(char *toloc)
+{
+ NSBundle *mainBundle = [NSBundle bundleForClass:[PluginConfigController class]];
+ NSString *origString = nil, *transString = nil;
+ origString = [NSString stringWithCString:toloc encoding:NSUTF8StringEncoding];
+ transString = [mainBundle localizedStringForKey:origString value:nil table:nil];
+ return [transString cStringUsingEncoding:NSUTF8StringEncoding];
+}
+