]> git.pld-linux.org Git - packages/doomlegacy.git/blame - doomlegacy-paths.patch
This commit was manufactured by cvs2git to create tag 'RA-1_0'.
[packages/doomlegacy.git] / doomlegacy-paths.patch
CommitLineData
31a64b22 1--- doomlegacy_src/linux_x/musserv/musserver.c.orig Sat Feb 22 20:51:24 2003
2+++ doomlegacy_src/linux_x/musserv/musserver.c Sat Feb 22 20:52:15 2003
52d2c3fa
JB
3@@ -122,9 +122,7 @@
4 ppid = getpid();
5 if (verbose > 1)
6 printf("pid %d %s\n", ppid, pproc);
7- waddir = getenv("DOOMWADDIR");
8- if (waddir == NULL)
9- waddir = ".";
10+ waddir = getenv("DOOMWADDIR") ? getenv("DOOMWADDIR") : "/usr/X11R6/share/doomlegacy";
11
12 while ((x = getopt(argc, argv, "acd:fhi:lmt:u:Vv")) != -1)
13 switch (x)
31a64b22 14--- doomlegacy_src/linux_x/musserv/readwad.c.orig Sat Feb 22 20:52:25 2003
15+++ doomlegacy_src/linux_x/musserv/readwad.c Sat Feb 22 20:53:03 2003
52d2c3fa
JB
16@@ -213,7 +213,7 @@
17 FILE *fp;
18
19 if (!(waddir = getenv("DOOMWADDIR")))
20- waddir = ".";
31a64b22 21+ waddir = "/usr/X11R6/share/doomlegacy";
52d2c3fa
JB
22
23 wadfilename = malloc(2 + strlen(s) + strlen(waddir));
24 if (*s != '/')
31a64b22 25--- doomlegacy_src/linux_x/i_video_xshm.c.orig Sat Feb 22 20:45:02 2003
26+++ doomlegacy_src/linux_x/i_video_xshm.c Sat Feb 22 20:46:49 2003
27@@ -1984,7 +1984,7 @@
28 rendermode = render_opengl;
29
30 // try to open library in CWD
31- dlptr = dlopen("./r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
32+ dlptr = dlopen("/usr/lib/share/doomlegacy/r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
33
34 if(!dlptr) {
35 // try to open in LIBPATH
36--- doomlegacy_src/linux_x/i_system.c.orig Sat Feb 22 20:48:37 2003
37+++ doomlegacy_src/linux_x/i_system.c Sat Feb 22 20:50:55 2003
38@@ -141,9 +141,9 @@
39 extern int eventtail;
40
41 // Locations for searching the legacy.dat
42-#define DEFAULTWADLOCATION1 "/usr/local/games/legacy"
43-#define DEFAULTWADLOCATION2 "/usr/games/legacy"
44-#define DEFAULTSEARCHPATH1 "/usr/local"
45+#define DEFAULTWADLOCATION1 "/usr/X11R6/share/doomlegacy"
46+#define DEFAULTWADLOCATION2 "/usr/X11R6/share/games/doomlegacy"
47+#define DEFAULTSEARCHPATH1 "/usr/X11R6/share/games/"
48 #define DEFAULTSEARCHPATH2 "/usr/games"
49 #define DEFAULTSEARCHPATH2 "/usr/games"
50 #define WADKEYWORD "legacy.dat"
51
52--- doomlegacy_src/linux_x/searchp.c.orig Sat Feb 22 20:53:41 2003
53+++ doomlegacy_src/linux_x/searchp.c Sat Feb 22 20:54:22 2003
54@@ -22,6 +22,12 @@
55 static char b[2048];
52d2c3fa
JB
56 struct stat s;
57 char pb[2048];
31a64b22 58+
59+ strcpy(b,"/usr/X11R6/lib/doomlegacy_src/");
52d2c3fa
JB
60+ strcat(b,file);
61+ if (stat(b, &s) == 0) {
62+ return(b);
63+ }
31a64b22 64
52d2c3fa
JB
65 /* get PATH, if not set just return filename, might be in cwd */
66 /* added "./" for current path 19990416 by Kin */
31a64b22 67--- doomlegacy_src/d_main.c.orig Sat Feb 22 20:47:20 2003
68+++ doomlegacy_src/d_main.c Sat Feb 22 20:48:10 2003
69@@ -1022,16 +1022,8 @@
70 // change to the directory where 'legacy.dat' is found
71 I_LocateWad();
72 #endif
73- doomwaddir = getenv("DOOMWADDIR");
74- if (!doomwaddir)
75- {
76- // get the current directory (possible problem on NT with "." as current dir)
77- if ( getcwd(pathtemp, _MAX_PATH) != NULL )
78- doomwaddir = pathtemp;
79- else
80- doomwaddir = ".";
81- }
82-
83+ doomwaddir = getenv("DOOMWADDIR") ? getenv("DOOMWADDIR") : "/usr/X11R6/share/doomlegacy";
84+
85 #ifdef __MACOS__
86 // cwd is always "/" when app is dbl-clicked
87 if (!stricmp(doomwaddir,"/"))
This page took 0.080421 seconds and 4 git commands to generate.