Mercurial > mm7
comparison mm7_7.cpp @ 2000:985fff9fb62d
constructor functions
author | zipi |
---|---|
date | Tue, 05 Nov 2013 21:55:52 +0000 |
parents | |
children | 79cdb74efa93 |
comparison
equal
deleted
inserted
replaced
1999:079f2abf54e4 | 2000:985fff9fb62d |
---|---|
1 #ifdef _MSC_VER | |
2 #define _CRT_SECURE_NO_WARNINGS | |
3 #endif | |
4 | |
5 #include "mm7_data.h" | |
6 #include "Render.h" | |
7 #include "texts.h" | |
8 #include "Party.h" | |
9 | |
10 int __cdecl sub_401022() | |
11 { | |
12 int result; // eax@1 | |
13 signed int v1; // ecx@1 | |
14 int *v2; // edx@1 | |
15 /* | |
16 result = (int)dword_4F8580; | |
17 v1 = 60; | |
18 v2 = &dword_4F8580[1]; | |
19 do | |
20 { | |
21 v2[2] = 0; | |
22 v2[1] = 0; | |
23 *v2 = 0; | |
24 v2 += 3; | |
25 --v1; | |
26 } | |
27 while ( v1 ); | |
28 dword_4F8580[0] = 1; | |
29 return result; | |
30 */ | |
31 | |
32 for( int i = 0; i < 62; i++ ) | |
33 { | |
34 dword_4F8580[i] = 0; | |
35 } | |
36 dword_4F8580[0] = 1; | |
37 return 0; | |
38 } | |
39 | |
40 //----- (00423B4A) -------------------------------------------------------- | |
41 void sub_423B4A() | |
42 { | |
43 float *v0; // eax@1 | |
44 signed int v1; // ecx@1 | |
45 | |
46 v0 = &array_507D30[0].flt_2C; | |
47 v1 = 50; | |
48 do | |
49 { | |
50 *v0 = 0.0; | |
51 v0 += 12; | |
52 --v1; | |
53 } | |
54 while ( v1 ); | |
55 } | |
56 | |
57 /* | |
58 GUIProgressBar *__cdecl crt_construct_576E30() | |
59 { | |
60 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.pLoadingBg); | |
61 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.field_40); | |
62 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.field_68); | |
63 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.field_90); | |
64 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.field_B8); | |
65 Texture::Texture(&pGameLoadingUI_ProgressBar.field_E0); | |
66 Texture::Texture(&pGameLoadingUI_ProgressBar.pBardata); | |
67 Texture::Texture(&pGameLoadingUI_ProgressBar.pLoadingProgress); | |
68 pGameLoadingUI_ProgressBar.uProgressCurrent = 0; | |
69 pGameLoadingUI_ProgressBar.uProgressMax = 0; | |
70 pGameLoadingUI_ProgressBar.field_9 = 0; | |
71 pGameLoadingUI_ProgressBar.field_8 = 0; | |
72 pGameLoadingUI_ProgressBar.uHeight = 0; | |
73 pGameLoadingUI_ProgressBar.uWidth = 0; | |
74 pGameLoadingUI_ProgressBar.uY = 0; | |
75 pGameLoadingUI_ProgressBar.uX = 0; | |
76 pGameLoadingUI_ProgressBar.field_17 = 0; | |
77 pGameLoadingUI_ProgressBar.field_16 = 0; | |
78 pGameLoadingUI_ProgressBar.field_15 = 0; | |
79 pGameLoadingUI_ProgressBar.field_14 = 0; | |
80 pGameLoadingUI_ProgressBar.field_13 = 0; | |
81 pGameLoadingUI_ProgressBar.field_12 = 0; | |
82 pGameLoadingUI_ProgressBar.field_11 = 0; | |
83 pGameLoadingUI_ProgressBar.field_10 = 0; | |
84 return &pGameLoadingUI_ProgressBar; | |
85 } | |
86 */ | |
87 | |
88 void __cdecl crt_init_globals_46BD9F() | |
89 { | |
90 pPartyActionQueue.uNumActions = 0; | |
91 } | |
92 | |
93 void constructors() | |
94 { | |
95 sub_401022(); | |
96 sub_423B4A(); | |
97 crt_init_globals_46BD9F() | |
98 | |
99 //no call to these anywhere | |
100 uGameUIFontMain_initialize(); | |
101 uGameUIFontShadow_initialize(); | |
102 SetSomeItemsNames(); | |
103 } | |
104 | |
105 /* | |
106 | |
107 X = called already in our code | |
108 byte = constructor byte setter | |
109 | |
110 .data:004DF004 dd offset sub_4C9A95 | |
111 IOStream | |
112 | |
113 .data:004DF008 dd offset sub_4C9B06 | |
114 IOStream | |
115 | |
116 .data:004DF00C dd offset sub_401022 | |
117 added | |
118 | |
119 .data:004DF010 dd offset sub_408B98 | |
120 .data:004DF014 dd offset sub_409BCC | |
121 .data:004DF018 dd offset crt_sub_40D6EB | |
122 byte | |
123 | |
124 .data:004DF01C dd offset crt_construct_40D707_ptr_pArcomageGame | |
125 X | |
126 | |
127 .data:004DF020 dd offset crt_sub_40E4A6 | |
128 .data:004DF024 dd offset crt_deconstruct_40E503 | |
129 .data:004DF028 dd offset crt_sub_40F760 | |
130 .data:004DF02C dd offset crt_sub_40F7EA | |
131 .data:004DF030 dd offset crt_sub_40F9A9 | |
132 .data:004DF034 dd offset crt_sub_410AD9 | |
133 byte | |
134 | |
135 .data:004DF038 dd offset SetMoonPhaseNames | |
136 X | |
137 | |
138 .data:004DF03C dd offset crt_sub_413FD0 | |
139 byte | |
140 | |
141 .data:004DF040 dd offset j_SetMonthNames | |
142 .data:004DF044 dd offset j_SetDayNames | |
143 .data:004DF048 dd offset j_SetSpellSchoolNames | |
144 .data:004DF04C dd offset j_SetAttributeNames | |
145 X InitializeGameText | |
146 | |
147 .data:004DF050 dd offset uGameUIFontMain_initialize | |
148 .data:004DF054 dd offset uGameUIFontShadow_initialize | |
149 added | |
150 | |
151 .data:004DF058 dd offset crt_construct_507ABC | |
152 .data:004DF05C dd offset crt_construct_507A94 | |
153 .data:004DF060 dd offset crt_construct_507A6C | |
154 .data:004DF064 dd offset crt_construct_507A44 | |
155 .data:004DF068 dd offset crt_construct_507A1C | |
156 .data:004DF06C dd offset crt_construct_506F20 | |
157 .data:004DF070 dd offset crt_construct_414D90_ptr_506E40 | |
158 X (RGBTexture constructor) | |
159 | |
160 .data:004DF074 dd offset crt_sub_423903 | |
161 byte | |
162 | |
163 .data:004DF078 dd offset IndoorCamera__IndoorCamera | |
164 X | |
165 | |
166 .data:004DF07C dd offset crt_sub_423ACD | |
167 byte | |
168 | |
169 .data:004DF080 dd offset j_reset_some_strus_flt_2Cs | |
170 deleted | |
171 | |
172 .data:004DF084 dd offset j_sub_423B4A | |
173 added | |
174 | |
175 .data:004DF088 dd offset crt_sub_4262DD | |
176 byte | |
177 | |
178 .data:004DF08C dd offset crt_construct_pEventTimer | |
179 .data:004DF090 dd offset crt_construct_pMiscTimer | |
180 X | |
181 | |
182 .data:004DF094 dd offset crt_sub_42640D | |
183 .data:004DF098 dd offset crt_sub_4268C7 | |
184 .data:004DF09C dd offset crt_sub_42692B | |
185 byte | |
186 | |
187 .data:004DF0A0 dd offset sub_426947 | |
188 X initialized | |
189 | |
190 .data:004DF0A4 dd offset crt_construct_50C0C8 | |
191 X CastSpellInfo | |
192 | |
193 .data:004DF0A8 dd offset crt_sub_42FBB7 | |
194 byte | |
195 | |
196 .data:004DF0AC dd offset crt_construct_50CDB4 | |
197 seems unused CastSpellInfo variable | |
198 | |
199 .data:004DF0B0 dd offset sub_4361D3 | |
200 .data:004DF0B4 dd offset sub_4382A0 | |
201 .data:004DF0B8 dd offset sub_43850A | |
202 .data:004DF0BC dd offset crt_438AEF | |
203 .data:004DF0C0 dd offset crt_438B7F | |
204 .data:004DF0C4 dd offset ctr_deconstruct_43B4E0 | |
205 byte | |
206 | |
207 .data:004DF0C8 dd offset crt_43B4FC | |
208 deleted, constructor for stru_51076C | |
209 | |
210 .data:004DF0CC dd offset crt_deconstruct_43B51C | |
211 .data:004DF0D0 dd offset crt_deconstruct_43B5F0 | |
212 .data:004DF0D4 dd offset crt_deconstruct_43B64C | |
213 byte | |
214 | |
215 .data:004DF0D8 dd offset _crt_construct_stru165 | |
216 X BloodsplatContainer | |
217 | |
218 .data:004DF0DC dd offset crt_deconstruct_43B751 | |
219 .data:004DF0E0 dd offset crt_deconstruct_43B9E3 | |
220 .data:004DF0E4 dd offset crt_deconstruct_43BC8B | |
221 .data:004DF0E8 dd offset crt_deconstruct_43F22A | |
222 byte | |
223 | |
224 .data:004DF0EC dd offset crt_construct_51B778 | |
225 X BspRenderer | |
226 | |
227 .data:004DF0F0 dd offset crt_construct_519AB8 | |
228 X LightsStack_MobileLight | |
229 | |
230 .data:004DF0F4 dd offset crt_construct_5187F0 | |
231 X LightsStack_StationaryLight | |
232 | |
233 | |
234 .data:004DF0F8 dd offset crt_deconstruct_440B28 | |
235 .data:004DF0FC dd offset crt_deconstruct_440F5C | |
236 byte | |
237 | |
238 .data:004DF100 dd offset crt_construct_576E30 | |
239 added but have to RECHECK | |
240 | |
241 .data:004DF104 dd offset crt_deconstruct_4437E5 | |
242 byte | |
243 | |
244 .data:004DF108 dd offset sub_446219 | |
245 X InitializeGameText | |
246 | |
247 .data:004DF10C dd offset crt_construct_5773C4 | |
248 unused RGBTexture | |
249 | |
250 .data:004DF110 dd offset sub_44C346 | |
251 .data:004DF114 dd offset crt_deconstruct_44C42C | |
252 .data:004DF118 dd offset crt_deconstruct_44D49E | |
253 byte | |
254 | |
255 .data:004DF11C dd offset _inline_SpriteFrameTable__SpriteFrameTable_global | |
256 .data:004DF120 dd offset _inline_TextureFrameTable__TextureFrameTable_global | |
257 X | |
258 | |
259 .data:004DF124 dd offset sub_44E49B | |
260 .data:004DF128 dd offset sub_44F1F9 | |
261 .data:004DF12C dd offset sub_44F560 | |
262 .data:004DF130 dd offset sub_450DC2 | |
263 .data:004DF134 dd offset crt_deconstruct_45232B | |
264 byte | |
265 | |
266 .data:004DF138 dd offset crt_construct_stru193_math@5C6E00 | |
267 X | |
268 | |
269 .data:004DF13C dd offset crt_452B74 | |
270 byte | |
271 | |
272 .data:004DF140 dd offset j_SetSomeItemsNames | |
273 added | |
274 | |
275 .data:004DF144 dd offset crt_deconstruct_458364 | |
276 byte | |
277 | |
278 .data:004DF148 dd offset _intline_DecorationList__DecorationList_global | |
279 X | |
280 | |
281 .data:004DF14C dd offset j_crt_construct_6836D0 | |
282 X LevelDecorations | |
283 | |
284 .data:004DF150 dd offset _inline_ObjectList__ObjectList_global | |
285 X | |
286 | |
287 .data:004DF154 dd offset j_crt_construct_665230 | |
288 X SpriteObjects | |
289 | |
290 .data:004DF158 dd offset j_crt_construct_5FF158 | |
291 X Actors | |
292 | |
293 .data:004DF15C dd offset _inline_MonsterList__MonsterList_global | |
294 X | |
295 | |
296 .data:004DF160 dd offset _inline_ChestList__ChestList_global | |
297 X | |
298 | |
299 .data:004DF164 dd offset j_crt_construct_5E5150 | |
300 X Chests | |
301 | |
302 .data:004DF168 dd offset _inline_OverlayList__OverlayList_global | |
303 X | |
304 | |
305 .data:004DF16C dd offset crt_construct_5E4D58 | |
306 X OverlayList | |
307 | |
308 .data:004DF170 dd offset sub_459C05 | |
309 byte | |
310 | |
311 .data:004DF174 dd offset sub_459C21 | |
312 X KeyboardActionMapping | |
313 | |
314 .data:004DF178 dd offset crt_deconstruct_45AFBD | |
315 .data:004DF17C dd offset crt_deconstruct_45B0EE | |
316 .data:004DF180 dd offset sub_45BA89 | |
317 byte | |
318 | |
319 .data:004DF184 dd offset crt_call_global_ctor_45BAA5 | |
320 X stru_69BD44 = "effpar03" , need RECHECK | |
321 | |
322 .data:004DF188 dd offset crt_deconstruct_45DEF7 | |
323 .data:004DF18C dd offset crt_deconstruct_45DF53 | |
324 .data:004DF190 dd offset crt_deconstruct_45DF6F | |
325 .data:004DF194 dd offset crt_deconstruct_45DF8B | |
326 byte | |
327 | |
328 .data:004DF198 dd offset crt_construct_ptr_6A0A60 | |
329 X LODFile | |
330 | |
331 .data:004DF19C dd offset crt_construct_ptr_6A0820 | |
332 X LODFile | |
333 | |
334 .data:004DF1A0 dd offset j_crt_construct_ptr_6A0118 | |
335 X RGBTexture | |
336 | |
337 .data:004DF1A4 dd offset sub_461415 | |
338 .data:004DF1A8 dd offset crt_deconstruct_4621BE | |
339 .data:004DF1AC dd offset crt_deconstruct_46220E | |
340 byte | |
341 | |
342 .data:004DF1B0 dd offset crt_construct_ptr_702B28 | |
343 X Allocator | |
344 | |
345 .data:004DF1B4 dd offset sub_46224A | |
346 X unused | |
347 | |
348 .data:004DF1B8 dd offset crt_construct_ptr_06F0E80 | |
349 X LODFile_IconsBitmaps | |
350 | |
351 .data:004DF1BC dd offset sub_4623CF | |
352 X LODFile_Sprites | |
353 | |
354 .data:004DF1C0 dd offset crt_call_ctors__pIcons_LOD | |
355 .data:004DF1C4 dd offset crt_call_ctors__pEvents_LOD | |
356 .data:004DF1C8 dd offset _inline_IndoorLocation__IndoorLocation_global | |
357 X | |
358 | |
359 .data:004DF1CC dd offset crt_init_globals_462620 | |
360 X initialized | |
361 | |
362 .data:004DF1D0 dd offset crt_construct_ptr_6BE158 | |
363 unused stru289 | |
364 | |
365 .data:004DF1D4 dd offset j_crt_init_globals_462659 | |
366 X initialized | |
367 | |
368 .data:004DF1D8 dd offset crt_construct_ptr_06BE070 | |
369 X ODMRenderParams | |
370 | |
371 .data:004DF1DC dd offset crt_init_globals_46269B | |
372 unused SW variable | |
373 | |
374 .data:004DF1E0 dd offset crt_construct_ptr_6BE048 | |
375 X TileTable | |
376 | |
377 .data:004DF1E4 dd offset crt_construct_ptr_6A0DF0 | |
378 X OutdoorLocation | |
379 | |
380 .data:004DF1E8 dd offset sub_466CA6 | |
381 .data:004DF1EC dd offset crt_deconstruct_467D29 | |
382 .data:004DF1F0 dd offset sub_467E32 | |
383 .data:004DF1F4 dd offset crt_deconstruct_46AC2C | |
384 byte | |
385 | |
386 .data:004DF1F8 dd offset crt_construct_46AC48_ptr_720990 | |
387 X std__string_720990 = "micon1" , need RECHECK | |
388 | |
389 .data:004DF1FC dd offset crt_deconstruct_46BD83 | |
390 byte | |
391 | |
392 .data:004DF200 dd offset crt_init_globals_46BD9F | |
393 added | |
394 | |
395 .data:004DF204 dd offset nullsub_26 | |
396 X | |
397 | |
398 .data:004DF208 dd offset sub_476102 | |
399 byte | |
400 | |
401 .data:004DF20C dd offset sub_47611E | |
402 X Texture | |
403 | |
404 .data:004DF210 dd offset sub_476128 | |
405 dword_7241C8 = 1 RECHECK | |
406 | |
407 .data:004DF214 dd offset sub_476133 | |
408 X InitializeGameText | |
409 | |
410 .data:004DF218 dd offset sub_477595 | |
411 .data:004DF21C dd offset sub_47836D | |
412 .data:004DF220 dd offset crt_sub_4783D9 | |
413 byte | |
414 | |
415 .data:004DF224 dd offset j__sub_4783FA_construct_global_73D150 | |
416 | |
417 | |
418 .data:004DF228 dd offset sub_47A368 | |
419 | |
420 | |
421 .data:004DF22C dd offset sub_47C778 | |
422 | |
423 | |
424 .data:004DF230 dd offset sub_47CDBE | |
425 | |
426 | |
427 .data:004DF234 dd offset sub_47CDDA | |
428 | |
429 | |
430 .data:004DF238 dd offset sub_47F483 | |
431 | |
432 | |
433 .data:004DF23C dd offset sub_47F49F | |
434 | |
435 | |
436 .data:004DF240 dd offset sub_47F4B9 | |
437 | |
438 | |
439 .data:004DF244 dd offset sub_482A74 | |
440 | |
441 | |
442 .data:004DF248 dd offset sub_485F37 | |
443 | |
444 | |
445 .data:004DF24C dd offset sub_486A0C | |
446 | |
447 | |
448 .data:004DF250 dd offset crt_deconstruct_487DF7 | |
449 | |
450 | |
451 .data:004DF254 dd offset sub_488E07 | |
452 | |
453 | |
454 .data:004DF258 dd offset sub_489572 | |
455 | |
456 | |
457 .data:004DF25C dd offset crt_deconstruct_489B44 | |
458 | |
459 | |
460 .data:004DF260 dd offset crt_deconstruct_489BBA | |
461 | |
462 | |
463 .data:004DF264 dd offset crt_construct_489BD6_ptr_080D198 | |
464 | |
465 | |
466 .data:004DF268 dd offset sub_48AAA9 | |
467 | |
468 | |
469 .data:004DF26C dd offset sub_48C20E | |
470 | |
471 | |
472 .data:004DF270 dd offset sub_48C22A | |
473 | |
474 | |
475 .data:004DF274 dd offset loc_48C234 | |
476 | |
477 | |
478 .data:004DF278 dd offset loc_48C243 | |
479 | |
480 | |
481 .data:004DF27C dd offset loc_48C252 | |
482 | |
483 | |
484 .data:004DF280 dd offset loc_48C3C0 | |
485 | |
486 | |
487 .data:004DF284 dd offset loc_48C474 | |
488 | |
489 | |
490 .data:004DF288 dd offset sub_49801C | |
491 | |
492 | |
493 .data:004DF28C dd offset sub_498077 | |
494 | |
495 | |
496 .data:004DF290 dd offset sub_498A25 | |
497 | |
498 | |
499 .data:004DF294 dd offset sub_49AFE5 | |
500 | |
501 | |
502 .data:004DF298 dd offset crt_deconstruct_49B36B | |
503 | |
504 | |
505 .data:004DF29C dd offset crt_construct_stru187@AE5BA8 | |
506 | |
507 | |
508 | |
509 .data:004DF2A0 dd offset crt_construct_ptr_AE5B94 | |
510 | |
511 | |
512 .data:004DF2A4 dd offset sub_49C594 | |
513 | |
514 | |
515 .data:004DF2A8 dd offset sub_49D6C8 | |
516 | |
517 | |
518 .data:004DF2AC dd offset sub_49D6E4 | |
519 | |
520 | |
521 .data:004DF2B0 dd offset sub_49E71A | |
522 | |
523 | |
524 .data:004DF2B4 dd offset sub_49E736 | |
525 | |
526 | |
527 .data:004DF2B8 dd offset sub_4A198F | |
528 | |
529 | |
530 .data:004DF2BC dd offset sub_4A19AB | |
531 | |
532 | |
533 .data:004DF2C0 dd offset sub_4A51AF | |
534 | |
535 | |
536 .data:004DF2C4 dd offset sub_4A7047 | |
537 | |
538 | |
539 .data:004DF2C8 dd offset sub_4A94EB | |
540 | |
541 | |
542 .data:004DF2CC dd offset sub_4A963E | |
543 | |
544 | |
545 .data:004DF2D0 dd offset sub_4A965A | |
546 | |
547 | |
548 .data:004DF2D4 dd offset AudioPlayer__AudioPlayer | |
549 | |
550 | |
551 .data:004DF2D8 dd offset sub_4AC1AD | |
552 | |
553 | |
554 .data:004DF2DC dd offset sub_4AC662 | |
555 | |
556 | |
557 .data:004DF2E0 dd offset sub_4ACC1C | |
558 | |
559 | |
560 .data:004DF2E4 dd offset sub_4AD369 | |
561 | |
562 | |
563 .data:004DF2E8 dd offset crt_deconstruct_4AD44B | |
564 | |
565 | |
566 .data:004DF2EC dd offset crt_construct_4AD467_ptr_F79D68 | |
567 | |
568 | |
569 .data:004DF2F0 dd offset crt_deconstruct_4AD4DE | |
570 | |
571 | |
572 .data:004DF2F4 dd offset crt_construct_ptr_F7CE30 | |
573 | |
574 | |
575 .data:004DF2F8 dd offset sub_4B142B | |
576 | |
577 | |
578 .data:004DF2FC dd offset crt_sub_4BE344 | |
579 | |
580 | |
581 .data:004DF300 dd offset j_Random__ctor | |
582 | |
583 | |
584 .data:004DF304 dd offset crt_sub_4BE6B5 | |
585 | |
586 | |
587 .data:004DF308 dd offset crt_sub_4BE6D4 | |
588 | |
589 | |
590 .data:004DF30C dd offset crt_j_VideoPlayer__ctor | |
591 | |
592 | |
593 .data:004DF310 dd offset sub_4C021E | |
594 | |
595 | |
596 .data:004DF314 dd offset sub_4C023A | |
597 | |
598 | |
599 .data:004DF318 dd offset sub_4C035A | |
600 | |
601 | |
602 .data:004DF31C dd offset sub_4C03A3 | |
603 | |
604 | |
605 .data:004DF320 dd offset sub_4C03BF | |
606 | |
607 | |
608 .data:004DF324 dd offset sub_4C03F1 | |
609 | |
610 | |
611 .data:004DF328 dd offset sub_4C0423 | |
612 | |
613 | |
614 .data:004DF32C dd offset sub_4C044B | |
615 | |
616 | |
617 .data:004DF330 dd offset sub_4C047D | |
618 | |
619 | |
620 .data:004DF334 dd offset sub_4C2A6E | |
621 | |
622 | |
623 .data:004DF338 dd offset sub_4C2A8A | |
624 | |
625 | |
626 .data:004DF33C dd offset sub_4C2F7C | |
627 | |
628 | |
629 .data:004DF340 dd offset unknown_libname_24 ; Microsoft VisualC 2-10/net runtime | |
630 | |
631 | |
632 .data:004DF34C dd offset ___onexitinit | |
633 | |
634 | |
635 .data:004DF350 dd offset ___lconv_init | |
636 | |
637 | |
638 .data:004DF354 dd offset ___initstdio | |
639 | |
640 | |
641 .data:004DF358 dd offset ___initmbctable | |
642 | |
643 | |
644 .data:004DF35C dd offset sub_4D298A | |
645 | |
646 | |
647 .data:004DF368 dd offset ___endstdio | |
648 | |
649 | |
650 .data:004DF374 dd offset sub_4D299B | |
651 | |
652 | |
653 */ |