-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
dr.h
277 lines (237 loc) · 8.03 KB
/
dr.h
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
#ifndef DR_H
#define DR_H
#include "defs.h"
#include <stdio.h>
#include <stdlib.h>
int __SETS__(int x);
int __OFSUB__(int x, int y);
extern char byte_463E00[256]; // weak
extern _UNKNOWN unk_462096; // weak
extern __int16 word_461ED4; // weak
extern void *volcur2Bpk; // idb
extern char unk_461EC0[256]; // idb
extern _UNKNOWN unk_461EC1; // weak
extern _UNKNOWN unk_461EC2; // weak
extern _UNKNOWN unk_461EC3; // weak
extern __int16 word_461EC4; // weak
extern _UNKNOWN unk_461EC6; // weak
extern _UNKNOWN unk_461EC7; // weak
extern __int16 word_461EC8; // weak
extern _UNKNOWN unk_461ECA; // weak
extern _UNKNOWN unk_461ECB; // weak
extern __int16 word_461ECC; // weak
extern _UNKNOWN unk_461ECE; // weak
extern _UNKNOWN unk_461ECF; // weak
extern __int16 word_461ED0; // weak
extern _UNKNOWN unk_461ED2; // weak
extern _UNKNOWN unk_461ED3; // weak
extern int joystick_y_axis_default_4A9EA0;
extern int joystick_y_axis_4A9EB8;
extern int joystick_x_axis_default_4AA3E0; // weak
extern int joystick_x_axis_4A7A44; // weak
extern char byte_456B00;
extern void *slidmus2Bpk; // idb
extern char byte_456B01;
extern char byte_44512A;
extern char byte_4629F6[256]; // weak
extern char byte_462A8C[256]; // weak
extern char byte_462B22[256]; // weak
extern char byte_462BB8[256]; // weak
extern __int16 word_45F010; // weak
extern int dword_45F000; // weak
extern int dword_45F004; // weak
extern int dword_45F008; // weak
extern int dword_45F00C; // weak
extern char byte_45FB84; // weak
extern char byte_45F012; // weak
extern char aGamepadDisable[50];
extern int menuOptionSelected_463DF0; // weak
extern int debug;
extern int cursorBpkFrame;
extern int participantInRaceById_45EA80[20];
extern int useHasMorePoints_456BC4;
extern int Val; // [sp+10h] [bp-314h]@1
extern int userRacePosition_456B50; // weak
extern int userRaceOrder_45FC20; // weak
extern int userLasRacePriceIncome_456BDC; // weak
extern int userLastRaceIncomeNoPrice_456BE0; // weak
extern int totalRaceSeconds_45EEBC; // weak
extern int totalRaceMinutes_45EEC0; // weak
extern int currentLapMilliseconds_45FC1C; // weak
extern int totalRaceMilliseconds_462D74; // weak
extern int currentRaceBestLapMinutes_463CAC; // idb
extern int currentRaceBestLapSeconds_45EB48; // idb
extern int currentLapSeconds_463CD4; // weak
extern int currentLapMinutes_45EA64; // weak
extern int currentRaceBestLapMilliseconds_461FEC; // idb
extern int circuitRecordSeconds_501260; // weak
extern int circuitRecordMilliseconds_4A9B8C; // weak
extern int circuitRecordMinutes_50A160; // weak
extern int totalRaceTime_50A164; // weake
extern int showWelcomePopup_456B74; // weak
extern int showUndergroundPopup_456B78; // weak
extern int showMediumWarningRace; // weak
extern int showHardWarningRace; // weak
extern int numberOfLaps; // idb
extern char raceFilePrefix_45EA50[8];
extern int participantsRace[3];
extern int firstRacePlayed_464F44;
extern int dword_461250; // weak
extern int dword_45F04C; // idb
extern int dword_4608F0[256]; // weak (solo un uso en dr.c)
extern int dword_45F050; // idb
extern int dword_45F054; // idb
extern int dword_456BD8;
extern int dword_456730;
extern int dword_445724;
extern int dword_4456E8;
extern int dword_45FA74; // weak
extern int dword_45FC00;
extern char byte_460840[2160];
extern char circuitsToSelect_46126C[3];
extern char byte_462D50;
extern char byte_45FAA0[256];
extern int screenPtr;
extern int isMultiplayerGame; // weak
extern int dword_445198 ; // weak
extern void *tsahpeBpk_45EB5C;
extern void *slidcop2Bpk; // idb
extern void *slidcur3Bpk; // idb
extern void *carnameBpk; // idb
extern void *carbas2Bpk; // idb
extern void *kuplaBpk; // idb
extern void *spons1bBpk; // idb
extern void *event2Bpk; // idb
extern void *reaperxBpk; // idb;
extern void *drugdealBpk; // idb;
extern void *dealer2bBpk; // idbM;
extern void *arrows1dBpk;
extern void *bases41Bpk;
extern void *bases42Bpk;
extern void *bases43Bpk;
extern void *bases44Bpk;
extern void *bases45Bpk;
extern void *repaaniBpk;
extern void *maxi1fBpk;
extern void* contaniBpk;
extern void *maret1eBpk; // idb
extern void *blacktx2Bpk; // idb
extern void *blacktx1Bpk; // idb
extern char keysRead_45E0C0[256]; // weak
extern int drugQuest_456BB4; // weak
extern int killOneQuest_456BB8; // weak
extern int killQuestDriverId_456BBC; // weak
extern int useWeapons;
extern int dword_45FA78; // weak
extern int dword_445194;
extern int dword_4451A0;
extern int dword_44DF5C;
extern void *dword_461EA4;
extern int dword_45EB50[256]; // weak
//extern char keysRead_45E0C0[KEY_F2]; // weak
//extern char keysRead_45E0C0[KEY_F3]; // weak
extern int userRaceOrder_4A9EA8;
extern int isCircuitReversed_456AA8;
extern void *splat4Bpk;
extern void *splat3Bpk;
extern void * pedestrBpk;
extern int circuitImageOffsetX_456ABC ;
extern int leftMenuInRaceWidth_456AA0;
extern int circuitImageOffsetY_456AC0;
extern int dword_464F14;
extern int carAnimFrameSize_45FBA0[6*64];
extern int palette1[768];
extern int selectedRace_462CE8; // weak;
extern int racePositions[3][4];
extern int lapped_456BC0 ; // weak
extern int maxPaletteEntries;
extern int dword_456B9C;
extern int consecutiveWins_456BA8;
extern int noPaintJob_456BAC; // weak
extern int allCarsCrash_456BB0 ;
extern int selectedRaceId ;
extern int isDemo_456B10;
extern const int INITIAL_MONEY;
extern int continueAnimCurrentFrame_4611D0; // weak;
extern int armourAnimFrameDirection_45F034; // weak
extern int armourAnimCurrentFrame_461288;
extern int tireAnimCurrentFrame_45F034 ;
extern int engineAnimCurrentFrame_462D80 ;
extern int carAnimCurrentFrame_45FBA0 ;
extern int actualCarSelected;
extern void * fsma3fBpk;
extern int undergroundPricesSet_456B84;
extern int showUndergroundPopup_456B78;
extern int dword_456B58;
extern int dword_462D7C; // weak
extern int framesToWaitAfterBuy_456B70;
extern void *dword_461ED8; // idb
extern int dword_456B60;
extern int dword_456B6C;
extern int dword_456B64;
extern int dword_4451A4;
extern int dword_44518C;
extern int raceDrivers_456758;
extern int dword_445190;
extern int dword_481BE8;
extern int raceEffectiveHalfWidth_445014;
extern int raceEffectiveHeight_445018;
extern int raceEffectiveHalfHeight_44501C;
extern int dword_4A7A38;
//shadow 3d system
extern int dword_50351C;
extern int dword_4A8A80;
extern int dword_4A7A4C;
extern int dword_46ECE4;
extern int dword_50EF20;
extern int dword_4A6AD0;
extern int raceShowTextures_44502C;
extern int raceEffectiveWidth_445010;
extern char circuitSelectedTR_464F50[8];
extern void* statpop4Bpk;
extern int initialVelocity;
extern void* statbas7Bpk;
extern void* circuitMatrixHxW_5034F8;
extern int circuitWidth_464F40; // weak
extern int currentDriverSelectedIndex_503518; // weak
extern void* obstacleBpk; // idb;
void* participantCarBpk_5034FC; // idb
extern int isRaceFinish_456AC8;
extern int dword_4A9EA4; // weak;
extern int dword_4AA500; // weak
extern void* genflaBpk; // idb
extern int numberOfParticipants_508D24; // weak
extern int participantRaceOrderUserFirst_508D44[4];
extern int dukeNukemEndRaceSoundPlayed_456AE8; // weak
extern char dukeNukemName[12];
extern int dword_4A7CFC; // weak
extern int dword_4A8A90[4]; // weak
extern int dword_4AA3F0[4]; // weak
extern int dword_4A7CC0[4]; // weak
extern int currentLapTime_481E0C; // weak
extern int ticksToPauseLapTimeInHud_4A9EB0; // weak
extern char smalfo4aBpk_4A9160[924*8]; // weak
extern int racePositionUserFirst_46E8D0[4]; // weak
extern int criticalDamageSoundPlayed_456ADC; // weak
extern int criticalDamage2SoundPlayed_456AE0; // weak
extern int lastCompletedLapTime_503224; // weak
extern int dword_503500; // weak
extern int dword_4B3160[256]; // weak
extern int dword_503240[256]; // weak
extern int raceFrame_481E14; // weak
typedef struct RacePopupMemory
{
int unk_479EE0; // weak -32 posicion x donde pintar
int unk_479EE4; // weak -28 posicion y donde pintar
int unk_479EE8; // weak 24
int unk_479EEC; // weak 20
int * unk_479EF0; // weak 16 puntero que contiene la imagen a mostras :)
int unk_479EF4; // weak 12
int unk_479EF8; // weak 8
int unk_479EFC; // weak 4
char unk_479F00; // weak
} RacePopupMemory;
typedef struct RacePopupMemory2{
int dword_50E560;
} RacePopupMemory2;
#endif