Rev 1 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | #ifndef _LOADING_H_ |
2 | #define _LOADING_H_ |
||
3 | |||
4 | #include "dr_types.h" |
||
5 | |||
6 | extern tHeadup_info gHeadup_image_info[32]; |
||
7 | extern char* gYour_car_names[2][6]; |
||
8 | extern char* gDrivable_car_names[6]; |
||
9 | extern char* gDamage_names[12]; |
||
10 | extern char* gWheel_actor_names[6]; |
||
11 | extern char* gRaces_file_names[9]; |
||
12 | extern char* gNet_avail_names[4]; |
||
13 | extern char* gFloorpan_names[5]; |
||
14 | extern int gAllow_open_to_fail; |
||
15 | extern int gDecode_thing; |
||
16 | extern char gDecode_string[14]; |
||
17 | extern int gFunk_groove_flags[30]; |
||
18 | extern char gDef_def_water_screen_name[32]; |
||
19 | extern br_material* gDestn_screen_mat; |
||
20 | extern br_material* gSource_screen_mat; |
||
21 | extern int gCurrent_race_file_index; |
||
22 | extern int gGroove_funk_offset; |
||
23 | extern int gDemo_armour; |
||
24 | extern int gDemo_rank; |
||
25 | extern int gDemo_opponents[5]; |
||
26 | extern int gDemo_power; |
||
27 | extern int gDemo_offensive; |
||
28 | |||
29 | tU32 ReadU32(FILE* pF); |
||
30 | |||
31 | tU16 ReadU16(FILE* pF); |
||
32 | |||
33 | tU8 ReadU8(FILE* pF); |
||
34 | |||
35 | tS32 ReadS32(FILE* pF); |
||
36 | |||
37 | tS16 ReadS16(FILE* pF); |
||
38 | |||
39 | tS8 ReadS8(FILE* pF); |
||
40 | |||
41 | void WriteU32L(FILE* pF, tU32 pNumber); |
||
42 | |||
43 | void WriteU16L(FILE* pF, tU16 pNumber); |
||
44 | |||
45 | void WriteU8L(FILE* pF, tU8 pNumber); |
||
46 | |||
47 | void WriteS32L(FILE* pF, tS32 pNumber); |
||
48 | |||
49 | void WriteS16L(FILE* pF, tS16 pNumber); |
||
50 | |||
51 | void WriteS8L(FILE* pF, tS8 pNumber); |
||
52 | |||
53 | void SkipBytes(FILE* pF, int pBytes_to_skip); |
||
54 | |||
55 | tU32 MemReadU32(char** pPtr); |
||
56 | |||
57 | tU16 MemReadU16(char** pPtr); |
||
58 | |||
59 | tU8 MemReadU8(char** pPtr); |
||
60 | |||
61 | tS32 MemReadS32(char** pPtr); |
||
62 | |||
63 | tS16 MemReadS16(char** pPtr); |
||
64 | |||
65 | tS8 MemReadS8(char** pPtr); |
||
66 | |||
67 | void MemSkipBytes(char** pPtr, int pBytes_to_skip); |
||
68 | |||
69 | void LoadGeneralParameters(void); |
||
70 | |||
71 | void FinishLoadingGeneral(void); |
||
72 | |||
73 | br_pixelmap* LoadPixelmap(char* pName); |
||
74 | |||
75 | br_uint_32 LoadPixelmaps(char* pFile_name, br_pixelmap** pPixelmaps, br_uint_16 pNum); |
||
76 | |||
77 | br_pixelmap* LoadShadeTable(char* pName); |
||
78 | |||
79 | br_material* LoadMaterial(char* pName); |
||
80 | |||
81 | br_model* LoadModel(char* pName); |
||
82 | |||
83 | br_actor* LoadActor(char* pName); |
||
84 | |||
85 | void DRLoadPalette(char* pPath_name); |
||
86 | |||
87 | void DRLoadShadeTable(char* pPath_name); |
||
88 | |||
89 | void RezeroPixelmaps(br_pixelmap** pPixelmap_array, int pCount); |
||
90 | |||
91 | void DRLoadPixelmaps(char* pPath_name); |
||
92 | |||
93 | void DRLoadMaterials(char* pPath_name); |
||
94 | |||
95 | void DRLoadModels(char* pPath_name); |
||
96 | |||
97 | void DRLoadActors(char* pPath_name); |
||
98 | |||
99 | void DRLoadLights(char* pPath_name); |
||
100 | |||
101 | void LoadInFiles(char* pThe_base_path, char* pThe_dir_name, void (*pLoad_routine)(char*)); |
||
102 | |||
103 | void LoadInRegisteeDir(char* pThe_dir_path); |
||
104 | |||
105 | void LoadInRegistees(void); |
||
106 | |||
107 | void LoadKeyMapping(void); |
||
108 | |||
109 | void LoadInterfaceStuff(int pWithin_race); |
||
110 | |||
111 | void UnlockInterfaceStuff(void); |
||
112 | |||
113 | void InitInterfaceLoadState(void); |
||
114 | |||
115 | tS8* ConvertPixTo16BitStripMap(br_pixelmap* pBr_map); |
||
116 | |||
117 | tS8* ConvertPixToStripMap(br_pixelmap* pThe_br_map); |
||
118 | |||
119 | void KillWindscreen(br_model* pModel, br_material* pMaterial); |
||
120 | |||
121 | void DropOffDyingPeds(tCar_spec* pCar); |
||
122 | |||
123 | void DisposeCar(tCar_spec* pCar_spec, int pOwner); |
||
124 | |||
125 | void AdjustCarCoordinates(tCar_spec* pCar); |
||
126 | |||
127 | void LoadSpeedo(FILE* pF, int pIndex, tCar_spec* pCar_spec); |
||
128 | |||
129 | void LoadTacho(FILE* pF, int pIndex, tCar_spec* pCar_spec); |
||
130 | |||
131 | void LoadHeadups(FILE* pF, int pIndex, tCar_spec* pCar_spec); |
||
132 | |||
133 | void ReadNonCarMechanicsData(FILE* pF, tNon_car_spec* non_car); |
||
134 | |||
135 | void ReadMechanicsData(FILE* pF, tCar_spec* c); |
||
136 | |||
137 | void LoadGear(FILE* pF, int pIndex, tCar_spec* pCar_spec); |
||
138 | |||
139 | void AddRefOffset(int* pRef_holder); |
||
140 | |||
141 | void GetDamageProgram(FILE* pF, tCar_spec* pCar_spec, tImpact_location pImpact_location); |
||
142 | |||
143 | intptr_t LinkModel(br_actor* pActor, tModel_pool* pModel_pool); |
||
144 | |||
145 | void FreeUpBonnetModels(br_model** pModel_array, int pModel_count); |
||
146 | |||
147 | void LinkModelsToActor(br_actor* pActor, br_model** pModel_array, int pModel_count); |
||
148 | |||
149 | void ReadShrapnelMaterials(FILE* pF, tCollision_info* pCar_spec); |
||
150 | |||
151 | void CloneCar(tCar_spec** pOutput_car, tCar_spec* pInput_car); |
||
152 | |||
153 | void DisposeClonedCar(tCar_spec* pCar); |
||
154 | |||
155 | int RemoveDoubleSided(br_model* pModel); |
||
156 | |||
157 | void MungeWindscreen(br_model* pModel); |
||
158 | |||
159 | void SetModelFlags(br_model* pModel, int pOwner); |
||
160 | |||
161 | void LoadCar(char* pCar_name, tDriver pDriver, tCar_spec* pCar_spec, int pOwner, char* pDriver_name, tBrender_storage* pStorage_space); |
||
162 | |||
163 | void LoadHeadupImages(void); |
||
164 | |||
165 | void DisposeHeadupImages(void); |
||
166 | |||
167 | FILE* OpenRaceFile(void); |
||
168 | |||
169 | void SkipRestOfRace(FILE* pF); |
||
170 | |||
171 | void LoadRaces(tRace_list_spec* pRace_list, int* pCount, int pRace_type_index); |
||
172 | |||
173 | void UnlockOpponentMugshot(int pIndex); |
||
174 | |||
175 | void LoadOpponentMugShot(int pIndex); |
||
176 | |||
177 | void DisposeOpponentGridIcon(tRace_info* pRace_info, int pIndex); |
||
178 | |||
179 | void LoadOpponentGridIcon(tRace_info* pRace_info, int pIndex); |
||
180 | |||
181 | void LoadRaceInfo(int pRace_index, tRace_info* pRace_info); |
||
182 | |||
183 | void DisposeRaceInfo(tRace_info* pRace_info); |
||
184 | |||
185 | void LoadGridIcons(tRace_info* pRace_info); |
||
186 | |||
187 | void DisposeGridIcons(tRace_info* pRace_info); |
||
188 | |||
189 | void LoadOpponents(void); |
||
190 | |||
191 | br_font* LoadBRFont(char* pName); |
||
192 | |||
193 | void LoadParts(void); |
||
194 | |||
195 | void UnlockParts(void); |
||
196 | |||
197 | br_pixelmap* LoadChromeFont(void); |
||
198 | |||
199 | void DisposeChromeFont(br_pixelmap* pThe_font); |
||
200 | |||
201 | int GetALineAndInterpretCommand(FILE* pF, char** pString_list, int pCount); |
||
202 | |||
203 | int GetAnInt(FILE* pF); |
||
204 | |||
205 | float GetAFloat(FILE* pF); |
||
206 | |||
207 | float GetAFloatPercent(FILE* pF); |
||
208 | |||
209 | void GetPairOfFloats(FILE* pF, float* pF1, float* pF2); |
||
210 | |||
211 | void GetThreeFloats(FILE* pF, float* pF1, float* pF2, float* pF3); |
||
212 | |||
213 | void GetPairOfInts(FILE* pF, int* pF1, int* pF2); |
||
214 | |||
215 | void GetThreeInts(FILE* pF, int* pF1, int* pF2, int* pF3); |
||
216 | |||
217 | void GetThreeIntsAndAString(FILE* pF, int* pF1, int* pF2, int* pF3, char* pS); |
||
218 | |||
219 | void GetFourInts(FILE* pF, int* pF1, int* pF2, int* pF3, int* pF4); |
||
220 | |||
221 | br_scalar GetAScalar(FILE* pF); |
||
222 | |||
223 | void GetPairOfScalars(FILE* pF, br_scalar* pS1, br_scalar* pS2); |
||
224 | |||
225 | void GetThreeScalars(FILE* pF, br_scalar* pS1, br_scalar* pS2, br_scalar* pS3); |
||
226 | |||
227 | void GetFourScalars(FILE* pF, br_scalar* pF1, br_scalar* pF2, br_scalar* pF3, br_scalar* pF4); |
||
228 | |||
229 | void GetFiveScalars(FILE* pF, br_scalar* pF1, br_scalar* pF2, br_scalar* pF3, br_scalar* pF4, br_scalar* pF5); |
||
230 | |||
231 | void GetNScalars(FILE* pF, int pNumber, br_scalar* pScalars); |
||
232 | |||
233 | void GetPairOfFloatPercents(FILE* pF, float* pF1, float* pF2); |
||
234 | |||
235 | void GetThreeFloatPercents(FILE* pF, float* pF1, float* pF2, float* pF3); |
||
236 | |||
237 | void GetAString(FILE* pF, char* pString); |
||
238 | |||
239 | void AboutToLoadFirstCar(void); |
||
240 | |||
241 | void LoadOpponentsCars(tRace_info* pRace_info); |
||
242 | |||
243 | void DisposeOpponentsCars(tRace_info* pRace_info); |
||
244 | |||
245 | void LoadMiscStrings(void); |
||
246 | |||
247 | void FillInRaceInfo(tRace_info* pThe_race); |
||
248 | |||
249 | FILE* OldDRfopen(char* pFilename, char* pMode); |
||
250 | |||
251 | void AllowOpenToFail(void); |
||
252 | |||
253 | void DoNotAllowOpenToFail(void); |
||
254 | |||
255 | FILE* DRfopen(char* pFilename, char* pMode); |
||
256 | |||
257 | int GetCDPathFromPathsTxtFile(char* pPath_name); |
||
258 | |||
259 | int TestForOriginalCarmaCDinDrive(void); |
||
260 | |||
261 | int OriginalCarmaCDinDrive(void); |
||
262 | |||
263 | int CarmaCDinDriveOrFullGameInstalled(void); |
||
264 | |||
265 | void ReadNetworkSettings(FILE* pF, tNet_game_options* pOptions); |
||
266 | |||
267 | int PrintNetOptions(FILE* pF, int pIndex); |
||
268 | |||
269 | int SaveOptions(void); |
||
270 | |||
271 | int RestoreOptions(void); |
||
272 | |||
273 | void InitFunkGrooveFlags(void); |
||
274 | |||
275 | #endif |