---- doomlegacy-1.32/doomlegacy/linux_x/i_video_xshm.c.orig Fri May 11 14:54:59 2001
-+++ doomlegacy-1.32/doomlegacy/linux_x/i_video_xshm.c Sat Jun 30 10:55:58 2001
-@@ -1896,7 +1896,7 @@
-
- rendermode = render_opengl;
- //dlptr = dlopen("./r_opengl.so",RTLD_LAZY);
-- dlptr = dlopen("./r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
-+ dlptr = dlopen("/usr/X11R6/lib/doomlegacy/r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
- if(!dlptr) {
- fprintf(stderr,"Error opening r_opengl.so!\n%s\n",dlerror());
- rendermode = render_soft;
---- doomlegacy-1.32/doomlegacy/d_main.c.orig Fri May 11 14:33:54 2001
-+++ doomlegacy-1.32/doomlegacy/d_main.c Sat Jun 30 10:54:48 2001
-@@ -979,15 +979,7 @@
- // change to the directory where 'doom3.wad' is found
- I_LocateWad();
- #endif
-- doomwaddir = getenv("DOOMWADDIR");
-- if (!doomwaddir)
-- {
-- // get the current directory (possible problem on NT with "." as current dir)
-- if ( getcwd(pathtemp, _MAX_PATH) != NULL )
-- doomwaddir = pathtemp;
-- else
-- doomwaddir = ".";
-- }
-+ doomwaddir = getenv("DOOMWADDIR") ? getenv("DOOMWADDIR") : "/usr/X11R6/share/doomlegacy";
-
- #ifdef __MACOS__
- // cwd is always "/" when app is dbl-clicked
---- doomlegacy-1.32/doomlegacy/linux_x/i_system.c.orig Fri May 11 14:54:58 2001
-+++ doomlegacy-1.32/doomlegacy/linux_x/i_system.c Wed Jul 18 15:33:51 2001
-@@ -119,10 +119,10 @@
- extern int eventtail;
-
- // Locations for searching the doom3.wad
--#define DEFAULTWADLOCATION1 "/usr/local/games/legacy"
--#define DEFAULTWADLOCATION2 "/usr/games/legacy"
--#define DEFAULTSEARCHPATH1 "/usr/local"
--#define DEFAULTSEARCHPATH2 "/usr/games"
-+#define DEFAULTWADLOCATION1 "/usr/X11R6/share/doomlegacy"
-+#define DEFAULTWADLOCATION2 "/usr/share/games/doomlegacy"
-+#define DEFAULTSEARCHPATH1 "/usr/share/games"
-+#define DEFAULTSEARCHPATH2 "/usr/X11R6/share"
- #define WADKEYWORD "doom3.wad"
-
- // holds wad path
---- doomlegacy-1.32/doomlegacy/linux_x/musserv/musserver.c.orig Fri May 11 14:55:26 2001
-+++ doomlegacy-1.32/doomlegacy/linux_x/musserv/musserver.c Wed Jul 18 15:35:53 2001
+--- doomlegacy_src/linux_x/musserv/musserver.c.orig Sat Feb 22 20:51:24 2003
++++ doomlegacy_src/linux_x/musserv/musserver.c Sat Feb 22 20:52:15 2003
@@ -122,9 +122,7 @@
ppid = getpid();
if (verbose > 1)
while ((x = getopt(argc, argv, "acd:fhi:lmt:u:Vv")) != -1)
switch (x)
---- doomlegacy-1.32/doomlegacy/linux_x/musserv/readwad.c.orig Fri May 11 14:55:27 2001
-+++ doomlegacy-1.32/doomlegacy/linux_x/musserv/readwad.c Wed Jul 18 15:37:09 2001
+--- doomlegacy_src/linux_x/musserv/readwad.c.orig Sat Feb 22 20:52:25 2003
++++ doomlegacy_src/linux_x/musserv/readwad.c Sat Feb 22 20:53:03 2003
@@ -213,7 +213,7 @@
FILE *fp;
if (!(waddir = getenv("DOOMWADDIR")))
- waddir = ".";
-+ waddir = "/usr/X11R6/share/doomlegacy";
++ waddir = "/usr/X11R6/share/doomlegacy";
wadfilename = malloc(2 + strlen(s) + strlen(waddir));
if (*s != '/')
---- doomlegacy-1.32/doomlegacy/linux_x/searchp.c.orig Fri May 11 14:54:59 2001
-+++ doomlegacy-1.32/doomlegacy/linux_x/searchp.c Wed Jul 18 15:46:11 2001
-@@ -23,6 +23,11 @@
+--- doomlegacy_src/linux_x/i_video_xshm.c.orig Sat Feb 22 20:45:02 2003
++++ doomlegacy_src/linux_x/i_video_xshm.c Sat Feb 22 20:46:49 2003
+@@ -1984,7 +1984,7 @@
+ rendermode = render_opengl;
+
+ // try to open library in CWD
+- dlptr = dlopen("./r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
++ dlptr = dlopen("/usr/lib/share/doomlegacy/r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
+
+ if(!dlptr) {
+ // try to open in LIBPATH
+--- doomlegacy_src/linux_x/i_system.c.orig Sat Feb 22 20:48:37 2003
++++ doomlegacy_src/linux_x/i_system.c Sat Feb 22 20:50:55 2003
+@@ -141,9 +141,9 @@
+ extern int eventtail;
+
+ // Locations for searching the legacy.dat
+-#define DEFAULTWADLOCATION1 "/usr/local/games/legacy"
+-#define DEFAULTWADLOCATION2 "/usr/games/legacy"
+-#define DEFAULTSEARCHPATH1 "/usr/local"
++#define DEFAULTWADLOCATION1 "/usr/X11R6/share/doomlegacy"
++#define DEFAULTWADLOCATION2 "/usr/X11R6/share/games/doomlegacy"
++#define DEFAULTSEARCHPATH1 "/usr/X11R6/share/games/"
+ #define DEFAULTSEARCHPATH2 "/usr/games"
+ #define DEFAULTSEARCHPATH2 "/usr/games"
+ #define WADKEYWORD "legacy.dat"
+
+--- doomlegacy_src/linux_x/searchp.c.orig Sat Feb 22 20:53:41 2003
++++ doomlegacy_src/linux_x/searchp.c Sat Feb 22 20:54:22 2003
+@@ -22,6 +22,12 @@
+ static char b[2048];
struct stat s;
char pb[2048];
-
-+ strcpy(b,"/usr/X11R6/lib/doomlegacy/");
++
++ strcpy(b,"/usr/X11R6/lib/doomlegacy_src/");
+ strcat(b,file);
+ if (stat(b, &s) == 0) {
+ return(b);
+ }
+
/* get PATH, if not set just return filename, might be in cwd */
/* added "./" for current path 19990416 by Kin */
- if ((path = getenv("PATH")) == NULL) {
+--- doomlegacy_src/d_main.c.orig Sat Feb 22 20:47:20 2003
++++ doomlegacy_src/d_main.c Sat Feb 22 20:48:10 2003
+@@ -1022,16 +1022,8 @@
+ // change to the directory where 'legacy.dat' is found
+ I_LocateWad();
+ #endif
+- doomwaddir = getenv("DOOMWADDIR");
+- if (!doomwaddir)
+- {
+- // get the current directory (possible problem on NT with "." as current dir)
+- if ( getcwd(pathtemp, _MAX_PATH) != NULL )
+- doomwaddir = pathtemp;
+- else
+- doomwaddir = ".";
+- }
+-
++ doomwaddir = getenv("DOOMWADDIR") ? getenv("DOOMWADDIR") : "/usr/X11R6/share/doomlegacy";
++
+ #ifdef __MACOS__
+ // cwd is always "/" when app is dbl-clicked
+ if (!stricmp(doomwaddir,"/"))