summaryrefslogtreecommitdiff
path: root/plugins/dfxvideo/cfg.c
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-05 08:12:50 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-05 08:12:50 +0000
commitb59859784f3d86b70fbf024fcce878c44a92d9e8 (patch)
tree77834ec5205dcdb4136ef69465412236e1a045d8 /plugins/dfxvideo/cfg.c
parent224fc8b2fef21ac5506cba0579f622e8c5a39b1a (diff)
downloadpcsxr-b59859784f3d86b70fbf024fcce878c44a92d9e8.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31115 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfxvideo/cfg.c')
-rw-r--r--plugins/dfxvideo/cfg.c24
1 files changed, 11 insertions, 13 deletions
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 <sys/stat.h>
+#include <unistd.h>
#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 <sys/stat.h>
-
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;
}