Mercurial > mm7
comparison mm7_7.cpp @ 2302:2b65eb263ceb
mm7_7 made redundant, exctracted the 2 useful functions, commented out the rest of the file
author | Grumpy7 |
---|---|
date | Sun, 16 Mar 2014 21:03:36 +0100 |
parents | aff7a7b072b7 |
children | f4af3b203f65 |
comparison
equal
deleted
inserted
replaced
2301:df24d11208df | 2302:2b65eb263ceb |
---|---|
1 #define _CRT_SECURE_NO_WARNINGS | 1 #define _CRT_SECURE_NO_WARNINGS |
2 #include "mm7_data.h" | |
3 #include "Render.h" | |
4 #include "texts.h" | |
5 #include "Party.h" | |
6 #include "Viewport.h" | |
7 | |
8 int __cdecl sub_401022() | |
9 { | |
10 int result; // eax@1 | |
11 signed int v1; // ecx@1 | |
12 int *v2; // edx@1 | |
13 /* | |
14 result = (int)dword_4F8580; | |
15 v1 = 60; | |
16 v2 = &dword_4F8580[1]; | |
17 do | |
18 { | |
19 v2[2] = 0; | |
20 v2[1] = 0; | |
21 *v2 = 0; | |
22 v2 += 3; | |
23 --v1; | |
24 } | |
25 while ( v1 ); | |
26 dword_4F8580[0] = 1; | |
27 return result; | |
28 */ | |
29 //__debugbreak();//Ritor1 | |
30 for( int i = 0; i < 62; i++ ) | |
31 { | |
32 dword_4F8580[i] = 0; | |
33 } | |
34 dword_4F8580[0] = 1; | |
35 return 0; | |
36 } | |
37 | |
38 //----- (00423B4A) -------------------------------------------------------- | |
39 void sub_423B4A() | |
40 { | |
41 for ( uint i = 0; i < 50; i++ ) | |
42 array_507D30[i].flt_2C = 0.0; | |
43 } | |
44 | 2 |
45 /* | 3 /* |
46 GUIProgressBar *__cdecl crt_construct_576E30() | 4 GUIProgressBar *__cdecl crt_construct_576E30() |
47 { | 5 { |
48 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.pLoadingBg); | 6 RGBTexture::RGBTexture(&pGameLoadingUI_ProgressBar.pLoadingBg); |
71 pGameLoadingUI_ProgressBar.field_10 = 0; | 29 pGameLoadingUI_ProgressBar.field_10 = 0; |
72 return &pGameLoadingUI_ProgressBar; | 30 return &pGameLoadingUI_ProgressBar; |
73 } | 31 } |
74 */ | 32 */ |
75 | 33 |
76 void constructors() | 34 /*void constructors() |
77 { | 35 { |
78 sub_401022(); | |
79 sub_423B4A(); | |
80 | |
81 //no call to these anywhere | 36 //no call to these anywhere |
82 uGameUIFontMain_initialize(); | 37 uGameUIFontMain_initialize(); |
83 uGameUIFontShadow_initialize(); | 38 uGameUIFontShadow_initialize(); |
84 SetSomeItemsNames(); | 39 }*/ |
85 } | |
86 | 40 |
87 /* | 41 /* |
88 | 42 |
89 X = called already in our code | 43 X = called already in our code |
90 byte = constructor byte setter | 44 byte = constructor byte setter |
94 | 48 |
95 .data:004DF008 dd offset sub_4C9B06 | 49 .data:004DF008 dd offset sub_4C9B06 |
96 IOStream | 50 IOStream |
97 | 51 |
98 .data:004DF00C dd offset sub_401022 | 52 .data:004DF00C dd offset sub_401022 |
99 added | 53 achieved by zero initializing dword_4F8580, dword_4F8580[0] = 1; is unused anyway |
100 | 54 |
101 .data:004DF010 dd offset sub_408B98 | 55 .data:004DF010 dd offset sub_408B98 |
102 .data:004DF014 dd offset sub_409BCC | 56 .data:004DF014 dd offset sub_409BCC |
103 .data:004DF018 dd offset crt_sub_40D6EB | 57 .data:004DF018 dd offset crt_sub_40D6EB |
104 byte | 58 byte |
126 .data:004DF04C dd offset j_SetAttributeNames | 80 .data:004DF04C dd offset j_SetAttributeNames |
127 X InitializeGameText | 81 X InitializeGameText |
128 | 82 |
129 .data:004DF050 dd offset uGameUIFontMain_initialize | 83 .data:004DF050 dd offset uGameUIFontMain_initialize |
130 .data:004DF054 dd offset uGameUIFontShadow_initialize | 84 .data:004DF054 dd offset uGameUIFontShadow_initialize |
131 added | 85 X called in SetUserInterface(Neutral) |
132 | 86 |
133 .data:004DF058 dd offset crt_construct_507ABC | 87 .data:004DF058 dd offset crt_construct_507ABC |
134 .data:004DF05C dd offset crt_construct_507A94 | 88 .data:004DF05C dd offset crt_construct_507A94 |
135 .data:004DF060 dd offset crt_construct_507A6C | 89 .data:004DF060 dd offset crt_construct_507A6C |
136 .data:004DF064 dd offset crt_construct_507A44 | 90 .data:004DF064 dd offset crt_construct_507A44 |
150 | 104 |
151 .data:004DF080 dd offset j_reset_some_strus_flt_2Cs | 105 .data:004DF080 dd offset j_reset_some_strus_flt_2Cs |
152 deleted | 106 deleted |
153 | 107 |
154 .data:004DF084 dd offset j_sub_423B4A | 108 .data:004DF084 dd offset j_sub_423B4A |
155 added | 109 byte |
156 | 110 |
157 .data:004DF088 dd offset crt_sub_4262DD | 111 .data:004DF088 dd offset crt_sub_4262DD |
158 byte | 112 byte |
159 | 113 |
160 .data:004DF08C dd offset crt_construct_pEventTimer | 114 .data:004DF08C dd offset crt_construct_pEventTimer |