diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-17 12:02:13 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-17 12:02:13 +0000 |
| commit | 60ead29b8401513e185a35fcb5be78737741366e (patch) | |
| tree | 7284aa9b38c4d0e8891a69bb267dad2e79275462 /plugins/dfxvideo | |
| parent | 1fb460ae55f60ddf099e7f9713c44838519fe028 (diff) | |
| download | pcsxr-60ead29b8401513e185a35fcb5be78737741366e.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@26207 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfxvideo')
| -rw-r--r-- | plugins/dfxvideo/Makefile.am | 2 | ||||
| -rw-r--r-- | plugins/dfxvideo/Makefile.in | 3 | ||||
| -rw-r--r-- | plugins/dfxvideo/gpu.c | 22 |
3 files changed, 19 insertions, 8 deletions
diff --git a/plugins/dfxvideo/Makefile.am b/plugins/dfxvideo/Makefile.am index 6f358b06..49ab9a7b 100644 --- a/plugins/dfxvideo/Makefile.am +++ b/plugins/dfxvideo/Makefile.am @@ -10,7 +10,7 @@ INCLUDES = -DPIXMAPDIR=\"${datadir}/pixmaps/\" \ -DLOCALE_DIR=\"${datadir}/locale/\" \ -DDATADIR=\"${datadir}/psemu/\" \ $(GTK2_CFLAGS) $(GLADE2_CFLAGS) -I/usr/X11R6/include \ - -I../../libpcsxcore -DVERSION=XVideo -DNUMBER=0.1.0 \ + -I../../libpcsxcore \ -I../../include bindir = @libdir@/games/psemu/ diff --git a/plugins/dfxvideo/Makefile.in b/plugins/dfxvideo/Makefile.in index 729764df..97ca3dd1 100644 --- a/plugins/dfxvideo/Makefile.in +++ b/plugins/dfxvideo/Makefile.in @@ -245,8 +245,7 @@ INCLUDES = -DPIXMAPDIR=\"${datadir}/pixmaps/\" \ -DLOCALE_DIR=\"${datadir}/locale/\" \ -DDATADIR=\"${datadir}/psemu/\" $(GTK2_CFLAGS) \ $(GLADE2_CFLAGS) -I/usr/X11R6/include -I../../libpcsxcore \ - -DVERSION=XVideo -DNUMBER=0.1.0 -I../../include \ - $(am__append_2) + -I../../include $(am__append_2) lib_LTLIBRARIES = libDFXVideo.la libDFXVideo_la_SOURCES = gpu.c cfg.c draw.c fps.c key.c menu.c prim.c \ soft.c zn.c $(am__append_1) diff --git a/plugins/dfxvideo/gpu.c b/plugins/dfxvideo/gpu.c index 33a83213..63aa4965 100644 --- a/plugins/dfxvideo/gpu.c +++ b/plugins/dfxvideo/gpu.c @@ -15,6 +15,8 @@ * * ***************************************************************************/ +#include "config.h" + #define _IN_GPU #include "externals.h" @@ -29,6 +31,16 @@ #include "fps.h" #include "swap.h" +#ifdef ENABLE_NLS +#include <libintl.h> +#include <locale.h> +#define _(x) gettext(x) +#define N_(x) (x) +#else +#define _(x) (x) +#define N_(x) (x) +#endif + //////////////////////////////////////////////////////////////////////// // PPDK developer must change libraryName field and can change revision and build //////////////////////////////////////////////////////////////////////// @@ -37,10 +49,10 @@ const unsigned char version = 1; // do not touch - library for PSEmu 1.x const unsigned char revision = 1; const unsigned char build = 17; // increase that with each version -static char *libraryName = "XVideo Driver"; -static char *libraryInfo = "P.E.Op.S. Xvideo Driver V1.17\nCoded by Pete Bernert and the P.E.Op.S. team\n"; +static char *libraryName = N_("XVideo Driver"); +static char *libraryInfo = N_("P.E.Op.S. Xvideo Driver V1.17\nCoded by Pete Bernert and the P.E.Op.S. team\n"); -static char *PluginAuthor = "Pete Bernert and the P.E.Op.S. team"; +static char *PluginAuthor = N_("Pete Bernert and the P.E.Op.S. team"); //////////////////////////////////////////////////////////////////////// // memory image of the PSX vram @@ -117,7 +129,7 @@ void CALLBACK GPUdisplayFlags(unsigned long dwFlags) // some info func char * CALLBACK PSEgetLibName(void) { - return libraryName; + return _(libraryName); } unsigned long CALLBACK PSEgetLibType(void) @@ -132,7 +144,7 @@ unsigned long CALLBACK PSEgetLibVersion(void) char * GPUgetLibInfos(void) { - return libraryInfo; + return _(libraryInfo); } //////////////////////////////////////////////////////////////////////// |
