Mercurial > mm7
annotate mm7_7.cpp @ 2462:1d04e48651d4
Render split into interface and realization, added Direct3D 11
author | a.parshin |
---|---|
date | Tue, 12 Aug 2014 21:34:18 +0300 |
parents | f4af3b203f65 |
children |
rev | line source |
---|---|
2415 | 1 #define _CRTDBG_MAP_ALLOC |
2 #include <stdlib.h> | |
3 #include <crtdbg.h> | |
4 | |
2253
aff7a7b072b7
adding _CRT_SECURE_NO_WARNINGS to get rid of a few hundrer annoying warnings + adding count parameter to swprintf
Grumpy7
parents:
2245
diff
changeset
|
5 #define _CRT_SECURE_NO_WARNINGS |
2000 | 6 |
7 /* | |
8 GUIProgressBar *__cdecl crt_construct_576E30() | |
9 { | |
10 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.pLoadingBg); | |
11 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.field_40); | |
12 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.field_68); | |
13 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.field_90); | |
14 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.field_B8); | |
15 Texture::Texture(&pGameLoadingUI_ProgressBar.field_E0); | |
16 Texture::Texture(&pGameLoadingUI_ProgressBar.pBardata); | |
17 Texture::Texture(&pGameLoadingUI_ProgressBar.pLoadingProgress); | |
18 pGameLoadingUI_ProgressBar.uProgressCurrent = 0; | |
19 pGameLoadingUI_ProgressBar.uProgressMax = 0; | |
20 pGameLoadingUI_ProgressBar.field_9 = 0; | |
21 pGameLoadingUI_ProgressBar.field_8 = 0; | |
22 pGameLoadingUI_ProgressBar.uHeight = 0; | |
23 pGameLoadingUI_ProgressBar.uWidth = 0; | |
24 pGameLoadingUI_ProgressBar.uY = 0; | |
25 pGameLoadingUI_ProgressBar.uX = 0; | |
26 pGameLoadingUI_ProgressBar.field_17 = 0; | |
27 pGameLoadingUI_ProgressBar.field_16 = 0; | |
28 pGameLoadingUI_ProgressBar.field_15 = 0; | |
29 pGameLoadingUI_ProgressBar.field_14 = 0; | |
30 pGameLoadingUI_ProgressBar.field_13 = 0; | |
31 pGameLoadingUI_ProgressBar.field_12 = 0; | |
32 pGameLoadingUI_ProgressBar.field_11 = 0; | |
33 pGameLoadingUI_ProgressBar.field_10 = 0; | |
34 return &pGameLoadingUI_ProgressBar; | |
35 } | |
36 */ | |
37 | |
2302
2b65eb263ceb
mm7_7 made redundant, exctracted the 2 useful functions, commented out the rest of the file
Grumpy7
parents:
2253
diff
changeset
|
38 /*void constructors() |
2000 | 39 { |
40 //no call to these anywhere | |
41 uGameUIFontMain_initialize(); | |
42 uGameUIFontShadow_initialize(); | |
2302
2b65eb263ceb
mm7_7 made redundant, exctracted the 2 useful functions, commented out the rest of the file
Grumpy7
parents:
2253
diff
changeset
|
43 }*/ |
2000 | 44 |
45 /* | |
46 | |
47 X = called already in our code | |
48 byte = constructor byte setter | |
49 | |
50 .data:004DF004 dd offset sub_4C9A95 | |
51 IOStream | |
52 | |
53 .data:004DF008 dd offset sub_4C9B06 | |
54 IOStream | |
55 | |
56 .data:004DF00C dd offset sub_401022 | |
2302
2b65eb263ceb
mm7_7 made redundant, exctracted the 2 useful functions, commented out the rest of the file
Grumpy7
parents:
2253
diff
changeset
|
57 achieved by zero initializing dword_4F8580, dword_4F8580[0] = 1; is unused anyway |
2000 | 58 |
59 .data:004DF010 dd offset sub_408B98 | |
60 .data:004DF014 dd offset sub_409BCC | |
61 .data:004DF018 dd offset crt_sub_40D6EB | |
62 byte | |
63 | |
64 .data:004DF01C dd offset crt_construct_40D707_ptr_pArcomageGame | |
65 X | |
66 | |
67 .data:004DF020 dd offset crt_sub_40E4A6 | |
68 .data:004DF024 dd offset crt_deconstruct_40E503 | |
69 .data:004DF028 dd offset crt_sub_40F760 | |
70 .data:004DF02C dd offset crt_sub_40F7EA | |
71 .data:004DF030 dd offset crt_sub_40F9A9 | |
72 .data:004DF034 dd offset crt_sub_410AD9 | |
73 byte | |
74 | |
75 .data:004DF038 dd offset SetMoonPhaseNames | |
76 X | |
77 | |
78 .data:004DF03C dd offset crt_sub_413FD0 | |
79 byte | |
80 | |
81 .data:004DF040 dd offset j_SetMonthNames | |
82 .data:004DF044 dd offset j_SetDayNames | |
83 .data:004DF048 dd offset j_SetSpellSchoolNames | |
84 .data:004DF04C dd offset j_SetAttributeNames | |
85 X InitializeGameText | |
86 | |
87 .data:004DF050 dd offset uGameUIFontMain_initialize | |
88 .data:004DF054 dd offset uGameUIFontShadow_initialize | |
2302
2b65eb263ceb
mm7_7 made redundant, exctracted the 2 useful functions, commented out the rest of the file
Grumpy7
parents:
2253
diff
changeset
|
89 X called in SetUserInterface(Neutral) |
2000 | 90 |
91 .data:004DF058 dd offset crt_construct_507ABC | |
92 .data:004DF05C dd offset crt_construct_507A94 | |
93 .data:004DF060 dd offset crt_construct_507A6C | |
94 .data:004DF064 dd offset crt_construct_507A44 | |
95 .data:004DF068 dd offset crt_construct_507A1C | |
96 .data:004DF06C dd offset crt_construct_506F20 | |
97 .data:004DF070 dd offset crt_construct_414D90_ptr_506E40 | |
98 X (RGBTexture constructor) | |
99 | |
100 .data:004DF074 dd offset crt_sub_423903 | |
101 byte | |
102 | |
103 .data:004DF078 dd offset IndoorCamera__IndoorCamera | |
104 X | |
105 | |
106 .data:004DF07C dd offset crt_sub_423ACD | |
107 byte | |
108 | |
109 .data:004DF080 dd offset j_reset_some_strus_flt_2Cs | |
110 deleted | |
111 | |
112 .data:004DF084 dd offset j_sub_423B4A | |
2302
2b65eb263ceb
mm7_7 made redundant, exctracted the 2 useful functions, commented out the rest of the file
Grumpy7
parents:
2253
diff
changeset
|
113 byte |
2000 | 114 |
115 .data:004DF088 dd offset crt_sub_4262DD | |
116 byte | |
117 | |
118 .data:004DF08C dd offset crt_construct_pEventTimer | |
119 .data:004DF090 dd offset crt_construct_pMiscTimer | |
120 X | |
121 | |
122 .data:004DF094 dd offset crt_sub_42640D | |
123 .data:004DF098 dd offset crt_sub_4268C7 | |
124 .data:004DF09C dd offset crt_sub_42692B | |
125 byte | |
126 | |
127 .data:004DF0A0 dd offset sub_426947 | |
128 X initialized | |
129 | |
130 .data:004DF0A4 dd offset crt_construct_50C0C8 | |
131 X CastSpellInfo | |
132 | |
133 .data:004DF0A8 dd offset crt_sub_42FBB7 | |
134 byte | |
135 | |
136 .data:004DF0AC dd offset crt_construct_50CDB4 | |
137 seems unused CastSpellInfo variable | |
138 | |
139 .data:004DF0B0 dd offset sub_4361D3 | |
140 .data:004DF0B4 dd offset sub_4382A0 | |
141 .data:004DF0B8 dd offset sub_43850A | |
142 .data:004DF0BC dd offset crt_438AEF | |
143 .data:004DF0C0 dd offset crt_438B7F | |
144 .data:004DF0C4 dd offset ctr_deconstruct_43B4E0 | |
145 byte | |
146 | |
147 .data:004DF0C8 dd offset crt_43B4FC | |
148 deleted, constructor for stru_51076C | |
149 | |
150 .data:004DF0CC dd offset crt_deconstruct_43B51C | |
151 .data:004DF0D0 dd offset crt_deconstruct_43B5F0 | |
152 .data:004DF0D4 dd offset crt_deconstruct_43B64C | |
153 byte | |
154 | |
155 .data:004DF0D8 dd offset _crt_construct_stru165 | |
156 X BloodsplatContainer | |
157 | |
158 .data:004DF0DC dd offset crt_deconstruct_43B751 | |
159 .data:004DF0E0 dd offset crt_deconstruct_43B9E3 | |
160 .data:004DF0E4 dd offset crt_deconstruct_43BC8B | |
161 .data:004DF0E8 dd offset crt_deconstruct_43F22A | |
162 byte | |
163 | |
164 .data:004DF0EC dd offset crt_construct_51B778 | |
165 X BspRenderer | |
166 | |
167 .data:004DF0F0 dd offset crt_construct_519AB8 | |
168 X LightsStack_MobileLight | |
169 | |
170 .data:004DF0F4 dd offset crt_construct_5187F0 | |
171 X LightsStack_StationaryLight | |
172 | |
173 | |
174 .data:004DF0F8 dd offset crt_deconstruct_440B28 | |
175 .data:004DF0FC dd offset crt_deconstruct_440F5C | |
176 byte | |
177 | |
178 .data:004DF100 dd offset crt_construct_576E30 | |
179 added but have to RECHECK | |
180 | |
181 .data:004DF104 dd offset crt_deconstruct_4437E5 | |
182 byte | |
183 | |
184 .data:004DF108 dd offset sub_446219 | |
185 X InitializeGameText | |
186 | |
187 .data:004DF10C dd offset crt_construct_5773C4 | |
188 unused RGBTexture | |
189 | |
190 .data:004DF110 dd offset sub_44C346 | |
191 .data:004DF114 dd offset crt_deconstruct_44C42C | |
192 .data:004DF118 dd offset crt_deconstruct_44D49E | |
193 byte | |
194 | |
195 .data:004DF11C dd offset _inline_SpriteFrameTable__SpriteFrameTable_global | |
196 .data:004DF120 dd offset _inline_TextureFrameTable__TextureFrameTable_global | |
197 X | |
198 | |
199 .data:004DF124 dd offset sub_44E49B | |
200 .data:004DF128 dd offset sub_44F1F9 | |
201 .data:004DF12C dd offset sub_44F560 | |
202 .data:004DF130 dd offset sub_450DC2 | |
203 .data:004DF134 dd offset crt_deconstruct_45232B | |
204 byte | |
205 | |
206 .data:004DF138 dd offset crt_construct_stru193_math@5C6E00 | |
207 X | |
208 | |
209 .data:004DF13C dd offset crt_452B74 | |
210 byte | |
211 | |
212 .data:004DF140 dd offset j_SetSomeItemsNames | |
213 added | |
214 | |
215 .data:004DF144 dd offset crt_deconstruct_458364 | |
216 byte | |
217 | |
218 .data:004DF148 dd offset _intline_DecorationList__DecorationList_global | |
219 X | |
220 | |
221 .data:004DF14C dd offset j_crt_construct_6836D0 | |
222 X LevelDecorations | |
223 | |
224 .data:004DF150 dd offset _inline_ObjectList__ObjectList_global | |
225 X | |
226 | |
227 .data:004DF154 dd offset j_crt_construct_665230 | |
228 X SpriteObjects | |
229 | |
230 .data:004DF158 dd offset j_crt_construct_5FF158 | |
231 X Actors | |
232 | |
233 .data:004DF15C dd offset _inline_MonsterList__MonsterList_global | |
234 X | |
235 | |
236 .data:004DF160 dd offset _inline_ChestList__ChestList_global | |
237 X | |
238 | |
239 .data:004DF164 dd offset j_crt_construct_5E5150 | |
240 X Chests | |
241 | |
242 .data:004DF168 dd offset _inline_OverlayList__OverlayList_global | |
243 X | |
244 | |
245 .data:004DF16C dd offset crt_construct_5E4D58 | |
246 X OverlayList | |
247 | |
248 .data:004DF170 dd offset sub_459C05 | |
249 byte | |
250 | |
251 .data:004DF174 dd offset sub_459C21 | |
252 X KeyboardActionMapping | |
253 | |
254 .data:004DF178 dd offset crt_deconstruct_45AFBD | |
255 .data:004DF17C dd offset crt_deconstruct_45B0EE | |
256 .data:004DF180 dd offset sub_45BA89 | |
257 byte | |
258 | |
259 .data:004DF184 dd offset crt_call_global_ctor_45BAA5 | |
2002 | 260 stru_69BD44 = "effpar03" , need RECHECK |
2000 | 261 |
262 .data:004DF188 dd offset crt_deconstruct_45DEF7 | |
263 .data:004DF18C dd offset crt_deconstruct_45DF53 | |
264 .data:004DF190 dd offset crt_deconstruct_45DF6F | |
265 .data:004DF194 dd offset crt_deconstruct_45DF8B | |
266 byte | |
267 | |
268 .data:004DF198 dd offset crt_construct_ptr_6A0A60 | |
269 X LODFile | |
270 | |
271 .data:004DF19C dd offset crt_construct_ptr_6A0820 | |
272 X LODFile | |
273 | |
274 .data:004DF1A0 dd offset j_crt_construct_ptr_6A0118 | |
275 X RGBTexture | |
276 | |
277 .data:004DF1A4 dd offset sub_461415 | |
278 .data:004DF1A8 dd offset crt_deconstruct_4621BE | |
279 .data:004DF1AC dd offset crt_deconstruct_46220E | |
280 byte | |
281 | |
282 .data:004DF1B0 dd offset crt_construct_ptr_702B28 | |
283 X Allocator | |
284 | |
285 .data:004DF1B4 dd offset sub_46224A | |
286 X unused | |
287 | |
288 .data:004DF1B8 dd offset crt_construct_ptr_06F0E80 | |
289 X LODFile_IconsBitmaps | |
290 | |
291 .data:004DF1BC dd offset sub_4623CF | |
292 X LODFile_Sprites | |
293 | |
294 .data:004DF1C0 dd offset crt_call_ctors__pIcons_LOD | |
295 .data:004DF1C4 dd offset crt_call_ctors__pEvents_LOD | |
296 .data:004DF1C8 dd offset _inline_IndoorLocation__IndoorLocation_global | |
297 X | |
298 | |
299 .data:004DF1CC dd offset crt_init_globals_462620 | |
300 X initialized | |
301 | |
302 .data:004DF1D0 dd offset crt_construct_ptr_6BE158 | |
303 unused stru289 | |
304 | |
305 .data:004DF1D4 dd offset j_crt_init_globals_462659 | |
306 X initialized | |
307 | |
308 .data:004DF1D8 dd offset crt_construct_ptr_06BE070 | |
309 X ODMRenderParams | |
310 | |
311 .data:004DF1DC dd offset crt_init_globals_46269B | |
312 unused SW variable | |
313 | |
314 .data:004DF1E0 dd offset crt_construct_ptr_6BE048 | |
315 X TileTable | |
316 | |
317 .data:004DF1E4 dd offset crt_construct_ptr_6A0DF0 | |
318 X OutdoorLocation | |
319 | |
320 .data:004DF1E8 dd offset sub_466CA6 | |
321 .data:004DF1EC dd offset crt_deconstruct_467D29 | |
322 .data:004DF1F0 dd offset sub_467E32 | |
323 .data:004DF1F4 dd offset crt_deconstruct_46AC2C | |
324 byte | |
325 | |
326 .data:004DF1F8 dd offset crt_construct_46AC48_ptr_720990 | |
327 X std__string_720990 = "micon1" , need RECHECK | |
328 | |
329 .data:004DF1FC dd offset crt_deconstruct_46BD83 | |
330 byte | |
331 | |
332 .data:004DF200 dd offset crt_init_globals_46BD9F | |
333 added | |
334 | |
335 .data:004DF204 dd offset nullsub_26 | |
336 X | |
337 | |
338 .data:004DF208 dd offset sub_476102 | |
339 byte | |
340 | |
341 .data:004DF20C dd offset sub_47611E | |
342 X Texture | |
343 | |
344 .data:004DF210 dd offset sub_476128 | |
345 dword_7241C8 = 1 RECHECK | |
346 | |
347 .data:004DF214 dd offset sub_476133 | |
348 X InitializeGameText | |
349 | |
350 .data:004DF218 dd offset sub_477595 | |
351 .data:004DF21C dd offset sub_47836D | |
352 .data:004DF220 dd offset crt_sub_4783D9 | |
353 byte | |
354 | |
355 .data:004DF224 dd offset j__sub_4783FA_construct_global_73D150 | |
356 | |
357 | |
358 .data:004DF228 dd offset sub_47A368 | |
359 .data:004DF22C dd offset sub_47C778 | |
360 .data:004DF230 dd offset sub_47CDBE | |
2002 | 361 byte |
2000 | 362 |
363 .data:004DF234 dd offset sub_47CDDA | |
364 | |
365 | |
366 .data:004DF238 dd offset sub_47F483 | |
2002 | 367 byte |
2000 | 368 |
369 .data:004DF23C dd offset sub_47F49F | |
370 | |
371 | |
372 .data:004DF240 dd offset sub_47F4B9 | |
373 | |
374 | |
375 .data:004DF244 dd offset sub_482A74 | |
376 .data:004DF248 dd offset sub_485F37 | |
377 .data:004DF24C dd offset sub_486A0C | |
378 .data:004DF250 dd offset crt_deconstruct_487DF7 | |
379 .data:004DF254 dd offset sub_488E07 | |
380 .data:004DF258 dd offset sub_489572 | |
381 .data:004DF25C dd offset crt_deconstruct_489B44 | |
382 .data:004DF260 dd offset crt_deconstruct_489BBA | |
2002 | 383 byte |
2000 | 384 |
385 .data:004DF264 dd offset crt_construct_489BD6_ptr_080D198 | |
2002 | 386 X PaletteManager |
2000 | 387 |
388 .data:004DF268 dd offset sub_48AAA9 | |
389 .data:004DF26C dd offset sub_48C20E | |
2002 | 390 byte |
2000 | 391 |
392 .data:004DF270 dd offset sub_48C22A | |
393 .data:004DF274 dd offset loc_48C234 | |
394 .data:004DF278 dd offset loc_48C243 | |
395 .data:004DF27C dd offset loc_48C252 | |
396 .data:004DF280 dd offset loc_48C3C0 | |
397 .data:004DF284 dd offset loc_48C474 | |
2002 | 398 Party constructor |
2000 | 399 |
400 .data:004DF288 dd offset sub_49801C | |
401 .data:004DF28C dd offset sub_498077 | |
402 .data:004DF290 dd offset sub_498A25 | |
403 .data:004DF294 dd offset sub_49AFE5 | |
404 .data:004DF298 dd offset crt_deconstruct_49B36B | |
2002 | 405 byte |
2000 | 406 |
407 .data:004DF29C dd offset crt_construct_stru187@AE5BA8 | |
2002 | 408 X DecalBuilder |
2000 | 409 |
410 .data:004DF2A0 dd offset crt_construct_ptr_AE5B94 | |
2002 | 411 std__string_AE5B94 = "hwsplat04", need RECHECK |
2000 | 412 |
413 .data:004DF2A4 dd offset sub_49C594 | |
414 .data:004DF2A8 dd offset sub_49D6C8 | |
415 .data:004DF2AC dd offset sub_49D6E4 | |
416 .data:004DF2B0 dd offset sub_49E71A | |
2002 | 417 byte |
2000 | 418 |
419 .data:004DF2B4 dd offset sub_49E736 | |
2002 | 420 X Render |
2000 | 421 |
422 .data:004DF2B8 dd offset sub_4A198F | |
2002 | 423 byte |
2000 | 424 |
425 .data:004DF2BC dd offset sub_4A19AB | |
2002 | 426 added |
2000 | 427 |
428 .data:004DF2C0 dd offset sub_4A51AF | |
429 .data:004DF2C4 dd offset sub_4A7047 | |
430 .data:004DF2C8 dd offset sub_4A94EB | |
431 .data:004DF2CC dd offset sub_4A963E | |
2002 | 432 byte |
2000 | 433 |
434 .data:004DF2D0 dd offset sub_4A965A | |
2002 | 435 X pSoundList |
2000 | 436 |
437 .data:004DF2D4 dd offset AudioPlayer__AudioPlayer | |
2002 | 438 X |
2000 | 439 |
440 .data:004DF2D8 dd offset sub_4AC1AD | |
441 .data:004DF2DC dd offset sub_4AC662 | |
442 .data:004DF2E0 dd offset sub_4ACC1C | |
443 .data:004DF2E4 dd offset sub_4AD369 | |
444 .data:004DF2E8 dd offset crt_deconstruct_4AD44B | |
2002 | 445 byte |
2000 | 446 |
447 .data:004DF2EC dd offset crt_construct_4AD467_ptr_F79D68 | |
2002 | 448 X OSVersion |
2000 | 449 |
450 .data:004DF2F0 dd offset crt_deconstruct_4AD4DE | |
2002 | 451 byte |
2000 | 452 |
453 .data:004DF2F4 dd offset crt_construct_ptr_F7CE30 | |
2002 | 454 X Texture |
2000 | 455 |
456 .data:004DF2F8 dd offset sub_4B142B | |
457 .data:004DF2FC dd offset crt_sub_4BE344 | |
2002 | 458 byte |
2000 | 459 |
460 .data:004DF300 dd offset j_Random__ctor | |
2002 | 461 X |
2000 | 462 |
463 .data:004DF304 dd offset crt_sub_4BE6B5 | |
464 .data:004DF308 dd offset crt_sub_4BE6D4 | |
2002 | 465 byte |
2000 | 466 |
467 .data:004DF30C dd offset crt_j_VideoPlayer__ctor | |
2002 | 468 RECHECK |
2000 | 469 |
470 .data:004DF310 dd offset sub_4C021E | |
2002 | 471 byte |
2000 | 472 |
473 .data:004DF314 dd offset sub_4C023A | |
2002 | 474 added |
2000 | 475 |
476 .data:004DF318 dd offset sub_4C035A | |
477 .data:004DF31C dd offset sub_4C03A3 | |
2002 | 478 byte |
2000 | 479 |
480 .data:004DF320 dd offset sub_4C03BF | |
481 .data:004DF324 dd offset sub_4C03F1 | |
482 .data:004DF328 dd offset sub_4C0423 | |
483 .data:004DF32C dd offset sub_4C044B | |
484 .data:004DF330 dd offset sub_4C047D | |
2002 | 485 X vis filters |
2000 | 486 |
487 .data:004DF334 dd offset sub_4C2A6E | |
488 .data:004DF338 dd offset sub_4C2A8A | |
489 .data:004DF33C dd offset sub_4C2F7C | |
2002 | 490 byte |
2000 | 491 |
492 */ |