-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstubs.c
237 lines (190 loc) · 3.74 KB
/
stubs.c
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fixer.h"
#include "3dc.h"
#include "platform.h"
#include "psndplat.h"
#include "module.h"
#include "stratdef.h"
#include "avp_userprofile.h"
#include "projfont.h"
#include "savegame.h"
#include "pldnet.h"
#include "kshape.h"
#include "d3d_hud.h"
/* winmain.c */
BOOL KeepMainRifFile = FALSE;
int HWAccel = 1;
int VideoModeNotAvailable=0;
/* bink.c */
void PlayBinkedFMV(char *filenamePtr)
{
/*
fprintf(stderr, "PlayBinkedFMV(%s)\n", filenamePtr);
*/
}
void StartMenuBackgroundBink()
{
/*
fprintf(stderr, "StartMenuBackgroundBink()\n");
*/
}
int PlayMenuBackgroundBink()
{
/*
fprintf(stderr, "PlayMenuBackgroundBink()\n");
*/
return 0;
}
void EndMenuBackgroundBink()
{
/*
fprintf(stderr, "EndMenuBackgroundBink()\n");
*/
}
/* alt_tab.cpp */
void ATIncludeSurface(void * pSurface, void * hBackup)
{
fprintf(stderr, "ATIncludeSurface(%p, %p)\n", pSurface, hBackup);
}
void ATRemoveSurface(void * pSurface)
{
fprintf(stderr, "ATRemoveSurface(%p)\n", pSurface);
}
void ATRemoveTexture(void * pTexture)
{
fprintf(stderr, "ATRemoveTexture(%p)\n", pTexture);
}
/* d3_func.cpp */
int GetTextureHandle(IMAGEHEADER *imageHeaderPtr)
{
/*
fprintf(stderr, "GetTextureHandle(%p)\n", imageHeaderPtr);
*/
return 1;
}
void ReleaseDirect3DNotDDOrImages()
{
/*
fprintf(stderr, "ReleaseDirect3DNotDDOrImages()\n");
*/
}
void ReleaseDirect3DNotDD()
{
/*
fprintf(stderr, "ReleaseDirect3DNotDD()\n");
*/
}
void ReleaseDirect3D()
{
/*
fprintf(stderr, "ReleaseDirect3D()\n");
*/
}
void ReloadImageIntoD3DImmediateSurface(IMAGEHEADER* iheader)
{
fprintf(stderr, "ReloadImageIntoD3DImmediateSurface(%p)\n", iheader);
}
/* d3d_render.cpp */
int NumberOfLandscapePolygons;
int FMVParticleColour;
int WireFrameMode;
void InitDrawTest()
{
/*
fprintf(stderr, "InitDrawTest()\n");
*/
}
void CheckWireFrameMode(int shouldBeOn)
{
if (shouldBeOn)
fprintf(stderr, "CheckWireFrameMode(%d)\n", shouldBeOn);
}
/* ddplat.cpp */
void MinimizeAllDDGraphics()
{
/*
fprintf(stderr, "MinimizeAllDDGraphics()\n");
*/
}
/* dd_func.cpp */
long BackBufferPitch;
int VideoModeColourDepth;
void BlitWin95Char(int x, int y, unsigned char toprint)
{
fprintf(stderr, "BlitWin95Char(%d, %d, %d)\n", x, y, toprint);
}
void LockSurfaceAndGetBufferPointer()
{
fprintf(stderr, "LockSurfaceAndGetBufferPointer()\n");
}
void finiObjectsExceptDD()
{
/*
fprintf(stderr, "finiObjectsExceptDD()\n");
*/
}
void finiObjects()
{
/*
fprintf(stderr, "finiObjects()\n");
*/
}
void UnlockSurface()
{
fprintf(stderr, "UnlockSurface()\n");
}
BOOL ChangeDirectDrawObject()
{
/*
fprintf(stderr, "ChangeDirectDrawObject()\n");
*/
return FALSE;
}
int SelectDirectDrawObject(void *pGUID)
{
/*
fprintf(stderr, "SelectDirectDrawObject(%p)\n", pGUID);
*/
return 0;
}
void GenerateDirectDrawSurface()
{
/*
fprintf(stderr, "GenerateDirectDrawSurface()\n");
*/
}
/* dxlog.c */
void dx_str_log(char const * str, int line, char const * file)
{
FILE *fp;
fp = OpenGameFile("dx_error.log", FILEMODE_APPEND, FILETYPE_CONFIG);
if (fp == NULL)
fp = stderr;
fprintf(fp, "dx_str_log: %s/%d: %s\n", file, line, str);
if (fp != stderr) fclose(fp);
}
void dx_strf_log(char const * fmt, ... )
{
va_list ap;
FILE *fp;
fp = OpenGameFile("dx_error.log", FILEMODE_APPEND, FILETYPE_CONFIG);
if (fp == NULL)
fp = stderr;
va_start(ap, fmt);
fprintf(fp, "dx_strf_log: ");
vfprintf(fp, fmt,ap);
fprintf(fp, "\n");
va_end(ap);
if (fp != stderr) fclose(fp);
}
void dx_line_log(int line, char const * file)
{
FILE *fp;
fp = OpenGameFile("dx_error.log", FILEMODE_APPEND, FILETYPE_CONFIG);
if (fp == NULL)
fp = stderr;
fprintf(fp, "dx_line_log: %s/%d\n", file, line);
if (fp != stderr) fclose(fp);
}