summarylogtreecommitdiffstats
path: root/dfxvideo_cfg_c.patch
blob: 3fa3dd0a21b0892a7c1adf1ce2e8804b27036d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- cfg.c	2024-09-13 12:25:03.306867446 -0400
+++ cfg.c.new	2024-09-13 12:28:45.316789367 -0400
@@ -18,6 +18,7 @@
 #define _IN_CFG
 
 #include <sys/stat.h>
+#include <sys/wait.h>
 #include <unistd.h>
 #include <stdlib.h>
 
@@ -96,7 +97,7 @@
     {
      strcpy(t,"cfg/dfxvideo.cfg");
      in = fopen(t,"rb");
-     if(!in) sprintf(t,"%s/.pcsxr/plugins/dfxvideo.cfg",getenv("HOME"));
+     if(!in) sprintf(t,"%s/.epsxe/plugins/dfxvideo.cfg",getenv("HOME"));
      else    fclose(in);
     }
    else     fclose(in);
@@ -198,7 +199,7 @@
 		return;
 	}
 
-	sprintf(cfg, "%s/.pcsxr/plugins/cfg/cfgDFXVideo", getenv("HOME"));
+	sprintf(cfg, "%s/.epsxe/config/cfgDFXVideo", getenv("HOME"));
 	if (stat(cfg, &buf) != -1) {
 		int pid = fork();
 		if (pid == 0) {
@@ -268,7 +269,7 @@
     {
      strcpy(t,"cfg/dfxvideo.cfg");
      out = fopen(t,"rb");
-     if(!out) sprintf(t,"%s/.pcsxr/plugins/dfxvideo.cfg",getenv("HOME"));
+     if(!out) sprintf(t,"%s/.epsxe/config/dfxvideo.cfg",getenv("HOME"));
      else     fclose(out);
     }
    else     fclose(out);