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
|
--- src/menu.c.orig Tue Jul 16 23:49:04 2002
+++ src/menu.c Tue Jul 16 23:49:31 2002
@@ -28,7 +28,7 @@
int initmenu(void){
- playmusic("data/music/lktheme.mod");
+ playmusic("%%DATADIR%%/data/music/lktheme.mod");
return 1;
}
@@ -114,13 +114,13 @@
loadc = COURSES-1;
else
loadc--;
- playsound("data/sounds/menu.wav",0);
+ playsound("%%DATADIR%%/data/sounds/menu.wav",0);
break;
case 2:
SDL_WM_ToggleFullScreen(surface);
fullscreen = 0;
- playsound("data/sounds/menu.wav",0);
+ playsound("%%DATADIR%%/data/sounds/menu.wav",0);
break;
default:
break;
@@ -133,12 +133,12 @@
loadc = 0;
else
loadc++;
- playsound("data/sounds/menu.wav",0);
+ playsound("%%DATADIR%%/data/sounds/menu.wav",0);
break;
case 2:
fullscreen = 0;
SDL_WM_ToggleFullScreen(surface);
- playsound("data/sounds/menu.wav",0);
+ playsound("%%DATADIR%%/data/sounds/menu.wav",0);
break;
default:
break;
@@ -149,14 +149,14 @@
menuitem = MENU_ITEMS-1;
else
menuitem--;
- playsound("data/sounds/menu.wav",0);
+ playsound("%%DATADIR%%/data/sounds/menu.wav",0);
break;
case SDLK_DOWN:
if(menuitem == MENU_ITEMS-1)
menuitem = 0;
else
menuitem++;
- playsound("data/sounds/menu.wav",0);
+ playsound("%%DATADIR%%/data/sounds/menu.wav",0);
break;
case SDLK_q:
killgame(1);
|