summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/gpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/peopsxgl/gpu.c')
-rw-r--r--plugins/peopsxgl/gpu.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/peopsxgl/gpu.c b/plugins/peopsxgl/gpu.c
index 8d6aa712..f956a63c 100644
--- a/plugins/peopsxgl/gpu.c
+++ b/plugins/peopsxgl/gpu.c
@@ -2624,25 +2624,25 @@ void StartCfgTool(char *arg) // linux: start external cfg tool
strcpy(cfg, "./cfgpeopsxgl");
if (stat(cfg, &buf) != -1) {
- strcat(cfg, " ");
- strcat(cfg, arg);
- system(cfg);
+ if (fork() == 0) {
+ execl(cfg, "cfgpeopsxgl", arg, NULL);
+ }
return;
}
strcpy(cfg, "./cfg/cfgpeopsxgl");
if (stat(cfg, &buf) != -1) {
- strcat(cfg, " ");
- strcat(cfg, arg);
- system(cfg);
+ if (fork() == 0) {
+ execl(cfg, "cfgpeopsxgl", arg, NULL);
+ }
return;
}
sprintf(cfg, "%s/.pcsx/plugins/cfg/cfgpeopsxgl", getenv("HOME"));
if (stat(cfg, &buf) != -1) {
- strcat(cfg, " ");
- strcat(cfg, arg);
- system(cfg);
+ if (fork() == 0) {
+ execl(cfg, "cfgpeopsxgl", arg, NULL);
+ }
return;
}