From b59859784f3d86b70fbf024fcce878c44a92d9e8 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Mon, 5 Oct 2009 08:12:50 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31115 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfxvideo/cfg.c | 24 ++- plugins/dfxvideo/gpucfg-0.1df/dfxvideo.glade2 | 202 ++++++++------------------ 2 files changed, 73 insertions(+), 153 deletions(-) (limited to 'plugins/dfxvideo') diff --git a/plugins/dfxvideo/cfg.c b/plugins/dfxvideo/cfg.c index f98e1256..458cde09 100644 --- a/plugins/dfxvideo/cfg.c +++ b/plugins/dfxvideo/cfg.c @@ -18,6 +18,7 @@ #define _IN_CFG #include +#include #undef FALSE #undef TRUE #define MAKELONG(low,high) ((unsigned long)(((unsigned short)(low)) | (((unsigned long)((unsigned short)(high))) << 16))) @@ -26,12 +27,9 @@ #include "cfg.h" #include "gpu.h" -// CONFIG FILE helpers.... used in (non-fpse) Linux and ZN Windows - -#include - char * pConfigFile = NULL; +// CONFIG FILE helpers.... // some helper macros: #define GetValue(name, var) \ @@ -172,25 +170,25 @@ void ExecCfg(char *arg) { strcpy(cfg, "./cfgDFXVideo"); if (stat(cfg, &buf) != -1) { - strcat(cfg, " "); - strcat(cfg, arg); - system(cfg); + if (fork() == 0) { + execl(cfg, "cfgDFXVideo", arg, NULL); + } return; } strcpy(cfg, "./cfg/cfgDFXVideo"); if (stat(cfg, &buf) != -1) { - strcat(cfg, " "); - strcat(cfg, arg); - system(cfg); + if (fork() == 0) { + execl(cfg, "cfgDFXVideo", arg, NULL); + } return; } sprintf(cfg, "%s/.pcsx/plugins/cfg/cfgDFXVideo", getenv("HOME")); if (stat(cfg, &buf) != -1) { - strcat(cfg, " "); - strcat(cfg, arg); - system(cfg); + if (fork() == 0) { + execl(cfg, "cfgDFXVideo", arg, NULL); + } return; } diff --git a/plugins/dfxvideo/gpucfg-0.1df/dfxvideo.glade2 b/plugins/dfxvideo/gpucfg-0.1df/dfxvideo.glade2 index 3eba6be9..62e7c597 100644 --- a/plugins/dfxvideo/gpucfg-0.1df/dfxvideo.glade2 +++ b/plugins/dfxvideo/gpucfg-0.1df/dfxvideo.glade2 @@ -1,20 +1,24 @@ - - - + + + True 10 Configure X11 Video True + center + dialog True + vertical 6 True + 0 True @@ -25,6 +29,7 @@ True + vertical True @@ -128,32 +133,36 @@ + + 0 + True + Maintain 4:3 Aspect Ratio True True - Maintain 4:3 Aspect Ratio + False True - 0 True False False + 0 + Fullscreen True True + False Toggle windowed/fullscreen mode. - Fullscreen True - 0 True @@ -182,10 +191,14 @@ + + 0 + True + 0 True @@ -196,29 +209,31 @@ True + vertical + Show FPS True True + False Toggle whether the FPS will be shown. - Show FPS True - 0 True False False + 0 + Autodetect FPS limit True True + False Enable this if games display too quickly. - Autodetect FPS limit True - 0 True True @@ -230,12 +245,12 @@ + Enable frame skipping True True + False Skip frames when rendering. - Enable frame skipping True - 0 True @@ -247,16 +262,15 @@ True - 1 2 12 + Set FPS True True - Set FPS + False True - 0 True @@ -307,6 +321,7 @@ True + 0 True @@ -317,18 +332,20 @@ True + vertical + Use game fixes True True - Use game fixes + False True - 0 True False False + 0 @@ -373,11 +390,11 @@ + Draw quads with triangles True True - Draw quads with triangles + False True - 0 True @@ -389,11 +406,11 @@ + Repeated flat tex triangles True True - Repeated flat tex triangles + False True - 0 True @@ -405,11 +422,11 @@ + Disable CPU Saving True True - Disable CPU Saving + False True - 0 True @@ -421,11 +438,11 @@ + Odd/even bit hack True True - Odd/even bit hack + False True - 0 True @@ -465,11 +482,11 @@ + PC FPS calculation True True - PC FPS calculation + False True - 0 True @@ -496,11 +513,11 @@ + Lazy screen update True True - Lazy screen update + False True - 0 True @@ -527,11 +544,11 @@ + Old frame skipping True True - Old frame skipping + False True - 0 True @@ -543,11 +560,11 @@ + Expand screen width True True - Expand screen width + False True - 0 True @@ -559,11 +576,11 @@ + Ignore brightness color True True - Ignore brightness color + False True - 0 True @@ -575,11 +592,11 @@ + Disable coordinate check True True - Disable coordinate check + False True - 0 True @@ -676,121 +693,26 @@ True - GTK_BUTTONBOX_END + end + gtk-close True True True - gtk-close + False True - 0 - - - - - 3 - - - - - - - True - 12 - About X11 Video Plugin - True - - - - True - - - True - True - - - True - Coded by: Pete Bernert and the P.E.Op.S. team - GTK_JUSTIFY_CENTER - - - False - False - - - - - True - Homepage: http://home.t-online.de/home/PeteBernert/ - GTK_JUSTIFY_CENTER - - - False - False - 1 - - - - - True - EMail: BlackDove@addcom.de - GTK_JUSTIFY_CENTER - - - False - False - 2 - - - - - 0 - True - Version: 1.15 - GTK_JUSTIFY_CENTER - - - False - False - 3 - - - - - True - Release date: 2003 - GTK_JUSTIFY_CENTER False False - 4 - - - - - True - <b>PCSX-df Video Plugin Adaption</b> - True - - - False - False - 5 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - XVideo Support: Stephen Chao - - - 6 + 0 + + 3 + -- cgit v1.2.3