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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
--- 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");
|