diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-03-03 00:15:09 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-03-03 00:15:09 +0000 |
| commit | f9a250d60e621b63cc77d432f42ae700ff3e249b (patch) | |
| tree | 44cdcb369bb0e6b1b5b6c0055c9c60d7f06e9bfa | |
| parent | 585bb1ecb49bda5c3ec1112df67474922c2cc04e (diff) | |
| download | pcsxr-f9a250d60e621b63cc77d432f42ae700ff3e249b.tar.gz | |
Make OS X's localization implementation functions match the signature of gettext.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@83305 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rwxr-xr-x | libpcsxcore/psxcommon.h | 4 | ||||
| -rwxr-xr-x | macosx/main.m | 4 | ||||
| -rwxr-xr-x | macosx/plugins/DFCdrom/macsrc/PluginConfigController.m | 4 | ||||
| -rwxr-xr-x | macosx/plugins/DFInput/macsrc/PadController.m | 4 | ||||
| -rwxr-xr-x | macosx/plugins/DFNet/macsrc/PluginConfigController.m | 4 | ||||
| -rwxr-xr-x | macosx/plugins/DFSound/macsrc/PluginController.m | 8 | ||||
| -rwxr-xr-x | macosx/plugins/DFXVideo/macsrc/PluginConfigController.m | 8 | ||||
| -rwxr-xr-x | macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m | 8 | ||||
| -rwxr-xr-x | plugins/dfcdrom/cdr.h | 4 | ||||
| -rwxr-xr-x | plugins/dfinput/pad.h | 4 | ||||
| -rwxr-xr-x | plugins/dfnet/dfnet.h | 4 | ||||
| -rwxr-xr-x | plugins/dfxvideo/gpu.c | 2 | ||||
| -rwxr-xr-x | plugins/peopsxgl/gpu.c | 4 |
13 files changed, 31 insertions, 31 deletions
diff --git a/libpcsxcore/psxcommon.h b/libpcsxcore/psxcommon.h index 92110d80..644d3b37 100755 --- a/libpcsxcore/psxcommon.h +++ b/libpcsxcore/psxcommon.h @@ -92,7 +92,7 @@ typedef uint8_t boolean; //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -extern const char* Pcsxr_locale_text(char* toloc); +extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -105,7 +105,7 @@ extern const char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern const char* PLUGLOC(char* toloc); +extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/macosx/main.m b/macosx/main.m index 8c5beb73..786bd155 100755 --- a/macosx/main.m +++ b/macosx/main.m @@ -176,10 +176,10 @@ void OnFile_Exit() { exit(0); } -const char* Pcsxr_locale_text(char* toloc){ +char* Pcsxr_locale_text(char* toloc){ NSBundle *mainBundle = [NSBundle mainBundle]; NSString *origString = nil, *transString = nil; origString = [NSString stringWithCString:toloc encoding:NSUTF8StringEncoding]; transString = [mainBundle localizedStringForKey:origString value:nil table:nil]; - return [transString cStringUsingEncoding:NSUTF8StringEncoding]; + return (char*)[transString cStringUsingEncoding:NSUTF8StringEncoding]; } diff --git a/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m b/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m index b510eead..5e79fe63 100755 --- a/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m @@ -157,12 +157,12 @@ void ReadConfig() @end -const char* PLUGLOC(char *toloc) +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]; + return (char*)[transString cStringUsingEncoding:NSUTF8StringEncoding]; } diff --git a/macosx/plugins/DFInput/macsrc/PadController.m b/macosx/plugins/DFInput/macsrc/PadController.m index 1479b35a..2cc01b7d 100755 --- a/macosx/plugins/DFInput/macsrc/PadController.m +++ b/macosx/plugins/DFInput/macsrc/PadController.m @@ -137,11 +137,11 @@ long DoConfiguration() { @end -const char* PLUGLOC(char *toloc) +char* PLUGLOC(char *toloc) { NSBundle *mainBundle = [NSBundle bundleForClass:[PadController class]]; NSString *origString = nil, *transString = nil; origString = [NSString stringWithCString:toloc encoding:NSUTF8StringEncoding]; transString = [mainBundle localizedStringForKey:origString value:nil table:nil]; - return [transString cStringUsingEncoding:NSUTF8StringEncoding]; + return (char*)[transString cStringUsingEncoding:NSUTF8StringEncoding]; } diff --git a/macosx/plugins/DFNet/macsrc/PluginConfigController.m b/macosx/plugins/DFNet/macsrc/PluginConfigController.m index 9ddf7417..063e83e6 100755 --- a/macosx/plugins/DFNet/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFNet/macsrc/PluginConfigController.m @@ -134,12 +134,12 @@ void ReadConfig() @end -const char* PLUGLOC(char *toloc) +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]; + return (char*)[transString cStringUsingEncoding:NSUTF8StringEncoding]; } diff --git a/macosx/plugins/DFSound/macsrc/PluginController.m b/macosx/plugins/DFSound/macsrc/PluginController.m index 536692e7..c074ce72 100755 --- a/macosx/plugins/DFSound/macsrc/PluginController.m +++ b/macosx/plugins/DFSound/macsrc/PluginController.m @@ -11,7 +11,7 @@ //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -extern const char* Pcsxr_locale_text(char* toloc); +extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -24,7 +24,7 @@ extern const char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern const char* PLUGLOC(char* toloc); +extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif @@ -213,11 +213,11 @@ void ReadConfig(void) @end -const char* PLUGLOC(char *toloc) +char* PLUGLOC(char *toloc) { NSBundle *mainBundle = [NSBundle bundleForClass:[PluginController class]]; NSString *origString = nil, *transString = nil; origString = [NSString stringWithCString:toloc encoding:NSUTF8StringEncoding]; transString = [mainBundle localizedStringForKey:origString value:nil table:nil]; - return [transString cStringUsingEncoding:NSUTF8StringEncoding]; + return (char*)[transString cStringUsingEncoding:NSUTF8StringEncoding]; } diff --git a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m index 4865a99e..83f74540 100755 --- a/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFXVideo/macsrc/PluginConfigController.m @@ -13,7 +13,7 @@ //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -extern const char* Pcsxr_locale_text(char* toloc); +extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -26,7 +26,7 @@ extern const char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern const char* PLUGLOC(char* toloc); +extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif @@ -346,12 +346,12 @@ void ReadConfig(void) @end -const char* PLUGLOC(char *toloc) +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]; + return (char*)[transString cStringUsingEncoding:NSUTF8StringEncoding]; } diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m index 41fdb7b7..63efc6a0 100755 --- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m +++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m @@ -20,7 +20,7 @@ //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -extern const char* Pcsxr_locale_text(char* toloc); +extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -33,7 +33,7 @@ extern const char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern const char* PLUGLOC(char* toloc); +extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif @@ -361,11 +361,11 @@ void ReadConfig(void) @end -const char* PLUGLOC(char *toloc) +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]; + return (char*)[transString cStringUsingEncoding:NSUTF8StringEncoding]; } diff --git a/plugins/dfcdrom/cdr.h b/plugins/dfcdrom/cdr.h index a9487f5d..fad9799d 100755 --- a/plugins/dfcdrom/cdr.h +++ b/plugins/dfcdrom/cdr.h @@ -36,7 +36,7 @@ extern "C" { #endif #ifdef PCSXRCORE -extern const char* Pcsxr_locale_text(char* toloc); +extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -49,7 +49,7 @@ extern const char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern const char* PLUGLOC(char* toloc); +extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/dfinput/pad.h b/plugins/dfinput/pad.h index 5e66f9ae..3249f6b3 100755 --- a/plugins/dfinput/pad.h +++ b/plugins/dfinput/pad.h @@ -61,7 +61,7 @@ typedef void *Display; //If running under Mac OS X, use the Localizable.strings file instead. #elif defined(_MACOSX) #ifdef PCSXRCORE -extern const char* Pcsxr_locale_text(char* toloc); +extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -74,7 +74,7 @@ extern const char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern const char* PLUGLOC(char* toloc); +extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/dfnet/dfnet.h b/plugins/dfnet/dfnet.h index 34f15748..aa8007c3 100755 --- a/plugins/dfnet/dfnet.h +++ b/plugins/dfnet/dfnet.h @@ -28,7 +28,7 @@ extern "C" { #endif #ifdef PCSXRCORE -extern const char* Pcsxr_locale_text(char* toloc); +extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -41,7 +41,7 @@ extern const char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern const char* PLUGLOC(char* toloc); +extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/dfxvideo/gpu.c b/plugins/dfxvideo/gpu.c index 72160435..da0bdf29 100755 --- a/plugins/dfxvideo/gpu.c +++ b/plugins/dfxvideo/gpu.c @@ -55,7 +55,7 @@ extern char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern const char* PLUGLOC(char* toloc); +extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c index f0066e7a..84d54bcb 100755 --- a/plugins/peopsxgl/gpu.c +++ b/plugins/peopsxgl/gpu.c @@ -59,7 +59,7 @@ static int iOldMode=0; #define N_(x) (x) #elif defined(_MACOSX) #ifdef PCSXRCORE -extern const char* Pcsxr_locale_text(char* toloc); +extern char* Pcsxr_locale_text(char* toloc); #define _(String) Pcsxr_locale_text(String) #define N_(String) String #else @@ -72,7 +72,7 @@ extern const char* Pcsxr_locale_text(char* toloc); #define PLUGLOC_x(x,y) x ## y #define PLUGLOC_y(x,y) PLUGLOC_x(x,y) #define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text) -extern const char* PLUGLOC(char* toloc); +extern char* PLUGLOC(char* toloc); #define _(String) PLUGLOC(String) #define N_(String) String #endif |
