]> icculus.org git repositories - btb/d2x.git/blob - main/kludge.c
if descent.pig available, load d1 textures for d1 levels
[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 char CDROM_dir[40] = ".";
20
21 #ifndef __DJGPP__
22 int gr_check_mode(u_int32_t a)
23 {
24   return 0;
25
26 #endif
27
28 extern int Num_computed_colors;
29 void gr_copy_palette(ubyte *gr_palette, ubyte *pal, int size)
30 {
31                 memcpy(gr_palette, pal, size);
32
33                 Num_computed_colors = 0;
34 }
35
36 #ifndef __DJGPP__
37 void joy_set_btn_values( int btn, int state, int time_down, int downcount, int upcount )
38 {
39
40 }
41 #endif
42
43 void key_putkey(char i)
44 {
45
46 }
47
48 void g3_remap_interp_colors()
49 {
50
51 }
52
53 /*
54 extern short interp_color_table
55 void g3_remap_interp_colors()
56 {
57  int eax, ebx;
58  
59  ebx = 0;
60  if (ebx != n_interp_colors) {
61    eax = 0;
62    eax = interp_color_table
63  }
64
65 }
66 */
67
68 int com_init(void)
69 {
70  return 0;
71 }
72
73 void com_level_sync(void)
74 {
75
76 }
77
78 void com_main_menu()
79 {
80
81 }
82
83 void com_do_frame()
84 {
85
86 }
87
88 void com_send_data()
89 {
90
91 }
92
93 void com_endlevel()
94 {
95
96 }
97
98 void serial_leave_game()
99 {
100
101 }
102
103 void network_dump_appletalk_player(ubyte node, ushort net, ubyte socket, int why)
104 {
105
106 }
107
108 int digi_link_sound_to_object2( int org_soundnum, short objnum, int forever, fix max_volume, fix  max_distance );
109 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 )
110 {
111         //FIXME: Total hack
112         return digi_link_sound_to_object2(org_soundnum, objnum, forever, max_volume, max_distance);
113 }
114
115 void digi_stop_digi_sounds(void)
116 {
117
118 }
119
120 void digi_stop_current_song(void)
121 {
122
123
124 }
125
126 void digi_set_midi_volume(int a)
127 {
128
129 }
130
131 void digi_play_midi_song(void)
132 {
133
134 }
135
136 void digi_pause_digi_sounds()
137 {
138
139 }
140
141 void digi_resume_digi_sounds()
142 {
143
144 }
145 void digi_play_sample_looping( int soundno, fix max_volume,int loop_start, int loop_end )
146 {
147
148 }
149
150 void digi_change_looping_volume( fix volume )
151 {
152
153 }
154
155 void digi_stop_looping_sound()
156 {
157
158 }
159
160 // Plays a queued voice sound.
161 void digi_start_sound_queued( short soundnum, fix volume )
162 {
163
164 }