--- src/game.c.orig 2003-07-30 15:21:48.000000000 -0400 +++ src/game.c 2003-07-30 15:22:29.000000000 -0400 @@ -39,10 +39,10 @@ player.z = -1000; debugf("Reset Player Variables"); - playmusic("data/music/fuck.xm"); + playmusic("GENTOO_DATADIR/music/fuck.xm"); newgame = 0; timestart = SDL_GetTicks(); - printf("\nLoaded Map:\n %s (data/%s)\n %s\n\n", + printf("\nLoaded Map:\n %s (GENTOO_DATADIR/%s)\n %s\n\n", course[loadc].name, course[loadc].dir, course[loadc].description); --- src/menu.c.orig 2003-07-30 15:21:57.000000000 -0400 +++ src/menu.c 2003-07-30 15:23:19.000000000 -0400 @@ -28,7 +28,7 @@ int initmenu(void){ - playmusic("data/music/lktheme.mod"); + playmusic("GENTOO_DATADIR/music/lktheme.mod"); return 1; } @@ -114,13 +114,13 @@ loadc = COURSES-1; else loadc--; - playsound("data/sounds/menu.wav",0); + playsound("GENTOO_DATADIR/sounds/menu.wav",0); break; case 2: SDL_WM_ToggleFullScreen(surface); fullscreen = 0; - playsound("data/sounds/menu.wav",0); + playsound("GENTOO_DATADIR/sounds/menu.wav",0); break; default: break; @@ -133,12 +133,12 @@ loadc = 0; else loadc++; - playsound("data/sounds/menu.wav",0); + playsound("GENTOO_DATADIR/sounds/menu.wav",0); break; case 2: fullscreen = 0; SDL_WM_ToggleFullScreen(surface); - playsound("data/sounds/menu.wav",0); + playsound("GENTOO_DATADIR/sounds/menu.wav",0); break; default: break; @@ -149,14 +149,14 @@ menuitem = MENU_ITEMS-1; else menuitem--; - playsound("data/sounds/menu.wav",0); + playsound("GENTOO_DATADIR/sounds/menu.wav",0); break; case SDLK_DOWN: if(menuitem == MENU_ITEMS-1) menuitem = 0; else menuitem++; - playsound("data/sounds/menu.wav",0); + playsound("GENTOO_DATADIR/sounds/menu.wav",0); break; case SDLK_q: killgame(1); --- src/terrain.c.orig 2003-07-30 15:22:01.000000000 -0400 +++ src/terrain.c 2003-07-30 15:22:46.000000000 -0400 @@ -36,7 +36,7 @@ debugf("Started Loading Map (%s)",course->dir); - sprintf(temp,"data/%s/%s",course->dir,"map.bmp"); + sprintf(temp,"GENTOO_DATADIR/%s/%s",course->dir,"map.bmp"); if(!(mapimg = IMG_Load(temp))) error("Missing Level Data"); --- src/textures.c.orig 2003-07-30 15:22:06.000000000 -0400 +++ src/textures.c 2003-07-30 15:22:52.000000000 -0400 @@ -35,7 +35,7 @@ SDL_Surface *image; char location[6+strlen(dir)+strlen(file)]; - sprintf(location,"data/%s/%s",dir,file); + sprintf(location,"GENTOO_DATADIR/%s/%s",dir,file); if((image = IMG_Load(location))){ glGenTextures(1, &texture[id]); --- src/main.c.orig 2003-07-30 15:25:48.000000000 -0400 +++ src/main.c 2003-07-30 15:26:10.000000000 -0400 @@ -75,7 +75,7 @@ printf("%s version %s\nCopyleft foobar and judeo (See COPYING for info)\n",TITLE,VERSION); - loadconfig("config"); + loadconfig("GENTOO_CONFDIR/race.conf"); if(!initsdl()) error("SDL Loading Failed"); else printf(" Loaded: SDL\n");