]> icculus.org git repositories - btb/d2x.git/blob - main/kludge.c
partial solution to bug #344
[btb/d2x.git] / main / kludge.c
1 /* DPH: This is the file where all the stub functions go. The aim is to have nothing in here ,eventually */
2 #include <conf.h>
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <string.h>
6 #include "gr.h"
7 #include "pstypes.h"
8 #include "maths.h"
9 #include "findfile.h"
10
11 int gr_renderstats = 0;
12 int gr_badtexture = 0;
13
14 extern int VGA_current_mode;
15 int Dont_start_sound_objects = 1;
16
17 int Window_clip_left,Window_clip_top,Window_clip_right,Window_clip_bot;
18
19 #if 0
20 char CDROM_dir[40] = ".";
21 #else
22 char CDROM_dir[40] = "/cdrom/d2data/";
23 #endif
24
25 #ifndef __DJGPP__
26 int gr_check_mode(u_int32_t a)
27 {
28   return 0;
29
30 #endif
31
32 extern int Num_computed_colors;
33 void gr_copy_palette(ubyte *gr_palette, ubyte *pal, int size)
34 {
35                 memcpy(gr_palette, pal, size);
36
37                 Num_computed_colors = 0;
38 }
39
40 #ifndef __DJGPP__
41 void joy_set_btn_values( int btn, int state, int time_down, int downcount, int upcount )
42 {
43
44 }
45 #endif
46
47 void key_putkey(char i)
48 {
49
50 }
51
52 void g3_remap_interp_colors()
53 {
54
55 }
56
57 /*
58 extern short interp_color_table
59 void g3_remap_interp_colors()
60 {
61  int eax, ebx;
62  
63  ebx = 0;
64  if (ebx != n_interp_colors) {
65    eax = 0;
66    eax = interp_color_table
67  }
68
69 }
70 */
71
72 int com_init(void)
73 {
74  return 0;
75 }
76
77 void com_level_sync(void)
78 {
79
80 }
81
82 void com_main_menu()
83 {
84
85 }
86
87 void com_do_frame()
88 {
89
90 }
91
92 void com_send_data()
93 {
94
95 }
96
97 void com_endlevel()
98 {
99
100 }
101
102 void serial_leave_game()
103 {
104
105 }
106
107 void network_dump_appletalk_player(ubyte node, ushort net, ubyte socket, int why)
108 {
109
110 }
111
112 int digi_link_sound_to_object2( int org_soundnum, short objnum, int forever, fix max_volume, fix  max_distance );
113 int digi_link_sound_to_object3( int org_soundnum, short objnum, int forever, fix max_volume, fix  max_distance, int loop_start, int loop_end )
114 {
115         //FIXME: Total hack
116         return digi_link_sound_to_object2(org_soundnum, objnum, forever, max_volume, max_distance);
117 }
118
119 void digi_stop_sound(int channel)
120 {
121
122 }
123
124 void digi_stop_digi_sounds(void)
125 {
126
127 }
128
129 void digi_stop_current_song(void)
130 {
131
132
133 }
134
135 void digi_set_midi_volume(int a)
136 {
137
138 }
139
140 void digi_play_midi_song(void)
141 {
142
143 }
144
145 void digi_pause_digi_sounds()
146 {
147
148 }
149
150 void digi_resume_digi_sounds()
151 {
152
153 }
154 void digi_play_sample_looping( int soundno, fix max_volume,int loop_start, int loop_end )
155 {
156
157 }
158
159 void digi_change_looping_volume( fix volume )
160 {
161
162 }
163
164 void digi_stop_looping_sound()
165 {
166
167 }
168
169 // Plays a queued voice sound.
170 void digi_start_sound_queued( short soundnum, fix volume )
171 {
172
173 }