Mercurial > mm7
annotate stru9.cpp @ 2331:9551756f46c4
Moving functions out of mm7_6.cpp into appropriate classes as static methods or free functions
author | Grumpy7 |
---|---|
date | Wed, 02 Apr 2014 01:21:05 +0200 |
parents | aff7a7b072b7 |
children | ddb803517a48 |
rev | line source |
---|---|
2253
aff7a7b072b7
adding _CRT_SECURE_NO_WARNINGS to get rid of a few hundrer annoying warnings + adding count parameter to swprintf
Grumpy7
parents:
1980
diff
changeset
|
1 #define _CRT_SECURE_NO_WARNINGS |
0 | 2 #include "stru9.h" |
3 #include "IndoorCameraD3D.h" | |
4 | |
5 #include "mm7_data.h" | |
6 | |
7 | |
8 | |
9 //----- (00498377) -------------------------------------------------------- | |
1188 | 10 bool stru9::_498377(struct RenderVertexSoft *pPortalBounding, unsigned int uNumVertices, struct IndoorCameraD3D_Vec4 *pVertices, struct RenderVertexSoft *pVertices2, unsigned int *pOutNumVertices) |
0 | 11 { |
687 | 12 int result; // eax@7 |
13 //unsigned int *v7; // ebx@7 | |
14 //char *v8; // esi@8 | |
0 | 15 RenderVertexSoft *v9; // ecx@9 |
687 | 16 //double v10; // st7@12 |
17 //double v11; // st6@12 | |
18 //RenderVertexSoft *v12; // esi@13 | |
19 //int v13; // ecx@25 | |
691 | 20 //VertexBuffer *v14; // edx@26 |
21 //char *v15; // eax@26 | |
22 //unsigned int i; // ecx@26 | |
1188 | 23 //int v17; // [sp+0h] [bp-28h]@9 |
687 | 24 //char *v18; // [sp+10h] [bp-18h]@8 |
0 | 25 RenderVertexSoft *v19; // [sp+14h] [bp-14h]@0 |
687 | 26 //RenderVertexSoft *v20; // [sp+18h] [bp-10h]@0 |
0 | 27 signed int v21; // [sp+1Ch] [bp-Ch]@7 |
687 | 28 //RenderVertexSoft *a2; // [sp+20h] [bp-8h]@8 |
29 //stru9 *thisa; // [sp+24h] [bp-4h]@1 | |
0 | 30 signed int a3a; // [sp+38h] [bp+10h]@12 |
691 | 31 //int a3b; // [sp+38h] [bp+10h]@25 |
0 | 32 |
687 | 33 //__debugbreak(); |
34 //thisa = this; | |
1195 | 35 return true; |
0 | 36 |
37 static RenderVertexSoft static_AE3FB4; | |
691 | 38 /*static bool __init_flag1 = false; |
0 | 39 if (!__init_flag1) |
40 { | |
41 __init_flag1 = true; | |
42 | |
43 static_AE3FB4.flt_2C = 0.0; | |
691 | 44 }*/ |
0 | 45 |
46 static stru312 static_AE3FA4; // idb | |
691 | 47 /*static bool __init_flag2 = false; |
0 | 48 if (!__init_flag2) |
49 { | |
50 __init_flag2 = true; | |
51 | |
52 //stru312::stru312(&static_AE3FA4); | |
691 | 53 }*/ |
0 | 54 |
55 static VertexBuffer static_AE33A0; // idb | |
691 | 56 /*static bool __init_flag3 = false; |
0 | 57 if (!__init_flag3) |
58 { | |
59 __init_flag3 = true; | |
60 | |
61 //VertexBuffer::VertexBuffer(&static_AE33A0); | |
691 | 62 }*/ |
0 | 63 |
1188 | 64 result = false; |
687 | 65 //v7 = pOutNumVertices; |
0 | 66 v21 = 0; |
67 if ( (signed int)uNumVertices <= 0 ) | |
68 { | |
687 | 69 *pOutNumVertices = 0; |
70 return true; | |
71 } | |
72 //a2 = a1; | |
73 //v8 = (char *)&a3->y; | |
74 //v18 = (char *)&a3->y; | |
75 //do | |
1188 | 76 for (uint j = 0; j < uNumVertices; j++ ) |
687 | 77 { |
78 //v17 = result + 1; | |
1188 | 79 result = j; |
80 v9 = &pPortalBounding[(j + 1) % (signed int)uNumVertices]; | |
794 | 81 if ( pPortalBounding->vWorldPosition.x != v9->vWorldPosition.x |
82 || pPortalBounding->vWorldPosition.y != v9->vWorldPosition.y | |
83 || pPortalBounding->vWorldPosition.z != v9->vWorldPosition.z ) | |
0 | 84 { |
687 | 85 //v10 = a3->z; |
86 //v11 = a3->y; | |
0 | 87 ++v21; |
687 | 88 //result = 0; |
0 | 89 static_AE33A0.uNumVertices = 0; |
687 | 90 //a3a = 0; |
1188 | 91 static_AE3FA4.x = pVertices->x; |
92 static_AE3FA4.y = pVertices->y; | |
93 static_AE3FA4.z = pVertices->z; | |
687 | 94 if ( (signed int)*pOutNumVertices <= 0 ) |
0 | 95 { |
687 | 96 *pOutNumVertices = 0; |
97 return true; | |
98 } | |
99 //do | |
100 for ( int i = 0; i < (signed int)*pOutNumVertices; i++ ) | |
101 { | |
102 //v12 = &pVertices[result]; | |
0 | 103 if ( result ) |
104 { | |
1188 | 105 if ( _4989E1(&pVertices2[i], &pVertices2[i], pPortalBounding, &static_AE3FA4) |
106 && _498774(&pVertices2[i], &pVertices2[i], pPortalBounding, &static_AE3FA4, &static_AE3FB4) ) | |
0 | 107 AddVertex(&static_AE33A0, &static_AE3FB4); |
108 } | |
109 else | |
110 { | |
1188 | 111 v19 = &pVertices2[i]; |
0 | 112 } |
687 | 113 //v20 = v12; |
1287 | 114 if ( AreVectorsCollinear(&pVertices2[i], pPortalBounding, &static_AE3FA4) ) |
1188 | 115 AddVertex(&static_AE33A0, &pVertices2[i]); |
687 | 116 //pOutNumVertices = pOutNumVertices; |
117 //a3a++; | |
0 | 118 } |
687 | 119 //while ( a3a < (signed int)*pOutNumVertices ); |
0 | 120 if ( !static_AE33A0.uNumVertices ) |
687 | 121 { |
122 *pOutNumVertices = 0; | |
123 return true; | |
124 } | |
1188 | 125 if ( _4989E1(&pVertices2[result], v19, pPortalBounding, &static_AE3FA4) |
126 && _498774(&pVertices2[result], v19, pPortalBounding, &static_AE3FA4, &static_AE3FB4) ) | |
0 | 127 AddVertex(&static_AE33A0, &static_AE3FB4); |
691 | 128 |
129 for (uint i = 0; i < static_AE33A0.uNumVertices; ++i) | |
130 { | |
1188 | 131 pVertices2[i].vWorldPosition.x = static_AE33A0.pVertices[i].vWorldPosition.x; |
132 pVertices2[i].vWorldPosition.y = static_AE33A0.pVertices[i].vWorldPosition.y; | |
133 pVertices2[i].vWorldPosition.z = static_AE33A0.pVertices[i].vWorldPosition.z; | |
134 pVertices2[i].u = static_AE33A0.pVertices[i].u; | |
135 pVertices2[i].v = static_AE33A0.pVertices[i].v; | |
691 | 136 } |
137 | |
687 | 138 //v13 = static_AE33A0.uNumVertices; |
691 | 139 /*a3b = 0; |
0 | 140 if ( static_AE33A0.uNumVertices > 0 ) |
141 { | |
142 v14 = &static_AE33A0; | |
143 v15 = (char *)&pVertices->vWorldPosition.y; | |
144 for ( i = (char *)&static_AE33A0.pVertices[0].vWorldPosition.y - (char *)pVertices; | |
145 ; | |
146 i = (char *)&static_AE33A0.pVertices[0].vWorldPosition.y - (char *)pVertices ) | |
147 { | |
148 ++a3b; | |
687 | 149 pVertices->vWorldPosition.x = v14->pVertices[0].vWorldPosition.x; |
0 | 150 v14 = (VertexBuffer *)((char *)v14 + 48); |
687 | 151 pVertices->vWorldPosition.y = *(float *)&v15[(char *)&static_AE33A0 - (char *)pVertices]; |
152 pVertices->vWorldPosition.z = *(float *)&v15[i]; | |
153 pVertices->u = *(float *)&v15[(char *)&static_AE33A0.pVertices[0]._rhw - (char *)pVertices]; | |
154 pVertices->v = *(float *)&v15[(char *)&static_AE33A0.pVertices[0].u - (char *)pVertices]; | |
155 //static_AE33A0.uNumVertices = static_AE33A0.uNumVertices; | |
0 | 156 v15 += 48; |
157 if ( a3b >= static_AE33A0.uNumVertices ) | |
158 break; | |
159 } | |
691 | 160 }*/ |
161 | |
687 | 162 //v7 = pOutNumVertices; |
163 //a3->y = a3->y; | |
164 *pOutNumVertices = static_AE33A0.uNumVertices; | |
0 | 165 } |
687 | 166 //result = v17; |
794 | 167 ++pPortalBounding; |
1188 | 168 pVertices++; |
687 | 169 //v18 = (char *)&a3->y; |
0 | 170 } |
687 | 171 //while ( v17 < (signed int)uNumVertices ); |
0 | 172 if ( v21 < 3 ) |
687 | 173 *pOutNumVertices = 0; |
174 return true; | |
0 | 175 } |
687 | 176 |
0 | 177 |
178 //----- (004985FB) -------------------------------------------------------- | |
1301 | 179 bool stru9::CalcPortalShape(struct RenderVertexSoft *a1, signed int a2, struct RenderVertexSoft *pVertices, unsigned int *pOutNumVertices, struct Vec3_float_ *a5, float a6, char *a7, int unused) |
0 | 180 { |
1301 | 181 //RenderVertexSoft *v9; // ecx@1 |
182 //Vec3_float_ *v10; // esi@1 | |
0 | 183 //char *v11; // ebx@1 |
1301 | 184 //RenderVertexSoft *pVertices; // edi@1 |
185 double pLinelength1; // st7@1 | |
0 | 186 //bool result; // eax@4 |
187 signed int v15; // edx@9 | |
1301 | 188 RenderVertexSoft *pLineEnd; // ecx@9 |
189 double pLinelength2; // st7@9 | |
190 double t; // st6@12 | |
0 | 191 signed int v19; // [sp+Ch] [bp-Ch]@7 |
1301 | 192 //float v20; // [sp+10h] [bp-8h]@1 |
0 | 193 bool v21; // [sp+14h] [bp-4h]@2 |
194 | |
1301 | 195 //v9 = a1; |
196 //v10 = a5; | |
0 | 197 //v11 = (char *)&a1->vWorldPosition.z; |
1980 | 198 RenderVertexSoft* pLineStart = &a1[0]; |
1301 | 199 //pVertices = a3; |
200 pLinelength1 = a5->x * a1[0].vWorldPosition.x + a1[0].vWorldPosition.y * a5->y + a1[0].vWorldPosition.z * a5->z; | |
201 //v20 = v13; | |
202 v21 = pLinelength1 >= a6; | |
0 | 203 |
204 *pOutNumVertices = 0; | |
205 if ( a2 <= 0 ) | |
206 return false; | |
207 v19 = 1; | |
1301 | 208 |
0 | 209 while ( 1 ) |
210 { | |
211 if ( v21 ) | |
212 { | |
1301 | 213 //++pVertices; |
214 memcpy(pVertices, pLineStart, sizeof(RenderVertexSoft)); | |
0 | 215 ++*pOutNumVertices; |
1301 | 216 //v10 = a5; |
217 pVertices++; | |
218 //v9 = a1; | |
0 | 219 } |
220 v15 = 0; | |
1301 | 221 pLineEnd = &a1[v19 % a2]; |
222 pLinelength2 = a5->x * pLineEnd->vWorldPosition.x + pLineEnd->vWorldPosition.y * a5->y + pLineEnd->vWorldPosition.z * a5->z; | |
223 if ( pLinelength2 >= a6 ) | |
0 | 224 v15 = 1; |
1301 | 225 |
0 | 226 if ( v21 != v15 ) |
227 { | |
1301 | 228 t = (a6 - pLinelength1) / (pLinelength2 - pLinelength1); |
229 pVertices->vWorldPosition.x = pLineStart->vWorldPosition.x + (pLineEnd->vWorldPosition.x - pLineStart->vWorldPosition.x) * t; | |
230 pVertices->vWorldPosition.y = pLineStart->vWorldPosition.y + (pLineEnd->vWorldPosition.y - pLineStart->vWorldPosition.y) * t; | |
231 pVertices->vWorldPosition.z = pLineStart->vWorldPosition.z + (pLineEnd->vWorldPosition.z - pLineStart->vWorldPosition.z) * t; | |
232 pVertices->u = pLineStart->u + (pLineEnd->u - pLineStart->u) * t; | |
233 pVertices->v = pLineStart->v + (pLineEnd->v - pLineStart->v) * t; | |
234 ++pVertices; | |
235 //a3 = pVertices; | |
0 | 236 ++*pOutNumVertices; |
237 *a7 = 1; | |
238 } | |
239 | |
1301 | 240 pLineStart++; |
0 | 241 v21 = v15; |
1301 | 242 pLinelength1 = pLinelength2; |
0 | 243 if ( v19 >= a2 ) |
244 break; | |
1301 | 245 //v9 = a1; |
0 | 246 v19++; |
247 } | |
248 | |
249 return *pOutNumVertices >= 3; | |
250 } | |
251 | |
252 //----- (00498737) -------------------------------------------------------- | |
253 void stru9::AddVertex(struct VertexBuffer *pVertexBuffer, struct RenderVertexSoft *pVertex) | |
254 { | |
436 | 255 // __debugbreak(); |
0 | 256 RenderVertexSoft *v3; // eax@1 |
257 | |
258 v3 = &pVertexBuffer->pVertices[pVertexBuffer->uNumVertices]; | |
259 v3->vWorldPosition.x = pVertex->vWorldPosition.x; | |
260 v3->vWorldPosition.y = pVertex->vWorldPosition.y; | |
261 v3->vWorldPosition.z = pVertex->vWorldPosition.z; | |
262 v3->u = pVertex->u; | |
263 v3->v = pVertex->v; | |
264 ++pVertexBuffer->uNumVertices; | |
265 } | |
266 | |
267 //----- (00498774) -------------------------------------------------------- | |
268 bool stru9::_498774(struct RenderVertexSoft *a1, struct RenderVertexSoft *a2, struct RenderVertexSoft *a3, struct stru312 *a4, struct RenderVertexSoft *a5) | |
269 { | |
270 RenderVertexSoft *v6; // ecx@5 | |
1924
8cd321994943
MSVS 2012 project file & some compilation warning fixes
Nomad
parents:
1301
diff
changeset
|
271 int result; // eax@5 |
0 | 272 double v8; // st7@5 |
273 __int16 v9; // fps@5 | |
274 double v10; // st7@6 | |
275 double v11; // st6@8 | |
276 double v12; // st6@18 | |
277 char v13; // c0@24 | |
278 char v14; // c2@24 | |
279 char v15; // c3@24 | |
280 float a1a; // [sp+10h] [bp+8h]@5 | |
281 | |
282 __debugbreak(); | |
283 | |
284 static stru312 static_AE3388; | |
285 static stru312 static_AE3378; | |
286 | |
287 v6 = a1; | |
288 static_AE3378.x = a1->vWorldPosition.x - a3->vWorldPosition.x; | |
289 static_AE3378.y = a1->vWorldPosition.y - a3->vWorldPosition.y; | |
290 HIWORD(result) = HIWORD(a4); | |
291 static_AE3378.z = a1->vWorldPosition.z - a3->vWorldPosition.z; | |
292 static_AE3388.x = a2->vWorldPosition.x - a1->vWorldPosition.x; | |
293 static_AE3388.y = a2->vWorldPosition.y - a1->vWorldPosition.y; | |
294 static_AE3388.z = a2->vWorldPosition.z - a1->vWorldPosition.z; | |
295 a1a = static_AE3388.x * a4->x + static_AE3388.z * a4->z + static_AE3388.y * a4->y; | |
296 v8 = static_AE3378.x * a4->x + static_AE3378.z * a4->z + static_AE3378.y * a4->y; | |
297 //UNDEF(v9); | |
298 if ( a1a != 0.0 ) | |
299 { | |
300 v10 = -(v8 / a1a); | |
301 if ( a1a <= 0.0 ) | |
302 { | |
303 if ( v10 <= 0.0 ) | |
304 v12 = 0.0; | |
305 else | |
306 v12 = v10; | |
307 if ( v12 <= 1.0 ) | |
308 { | |
309 if ( v10 <= 0.0 ) | |
310 v10 = (float)0.0; | |
311 } | |
312 else | |
313 { | |
314 v10 = 1.0; | |
315 } | |
316 } | |
317 else | |
318 { | |
319 if ( v10 >= 1.0 ) | |
320 v11 = 1.0; | |
321 else | |
322 v11 = v10; | |
323 if ( v11 >= 0.0 ) | |
324 { | |
325 if ( v10 >= 1.0 ) | |
326 v10 = (float)1.0; | |
327 } | |
328 else | |
329 { | |
330 v10 = 0.0; | |
331 } | |
332 } | |
333 result = (bool)a5; | |
334 a5->vWorldPosition.x = (a2->vWorldPosition.x - v6->vWorldPosition.x) * v10 + v6->vWorldPosition.x; | |
335 a5->vWorldPosition.y = (a2->vWorldPosition.y - v6->vWorldPosition.y) * v10 + v6->vWorldPosition.y; | |
336 a5->vWorldPosition.z = (a2->vWorldPosition.z - v6->vWorldPosition.z) * v10 + v6->vWorldPosition.z; | |
337 a5->u = (a2->u - v6->u) * v10 + v6->u; | |
338 a5->v = (a2->v - v6->v) * v10 + v6->v; | |
339 goto LABEL_15; | |
340 } | |
341 v13 = v8 < 0.0; | |
342 v14 = 0; | |
343 v15 = v8 == 0.0; | |
344 BYTE1(result) = HIBYTE(v9); | |
345 if ( v8 < 0.0 ) | |
346 { | |
347 LABEL_15: | |
348 LOBYTE(result) = 1; | |
349 return result; | |
350 } | |
351 LOBYTE(result) = 0; | |
352 return result; | |
353 } | |
354 // AE3398: using guessed type char static_init_flag__AE3388_bit1__AE3378_bit2; | |
355 | |
356 //----- (0049895A) -------------------------------------------------------- | |
357 bool stru9::AreVectorsCollinear(struct RenderVertexSoft *a1, struct RenderVertexSoft *a2, struct stru312 *a3) | |
358 { | |
359 static stru312 static_F942A0; | |
360 | |
361 static_F942A0.x = a1->vWorldPosition.x - a2->vWorldPosition.x; | |
362 static_F942A0.y = a1->vWorldPosition.y - a2->vWorldPosition.y; | |
363 static_F942A0.z = a1->vWorldPosition.z - a2->vWorldPosition.z; | |
364 | |
365 static float flt_F942B4 = static_F942A0.z * a3->z + static_F942A0.y * a3->y + static_F942A0.x * a3->x; | |
366 if (flt_F942B4 >= 0) | |
367 return true; | |
368 return false; | |
369 } | |
370 | |
371 | |
372 //----- (004989E1) -------------------------------------------------------- | |
373 bool stru9::_4989E1(struct RenderVertexSoft *a1, struct RenderVertexSoft *a2, struct RenderVertexSoft *a3, struct stru312 *a4) | |
374 { | |
375 bool r1; | |
376 bool r2; | |
377 | |
378 r1 = AreVectorsCollinear(a1, a3, a4); | |
379 r2 = AreVectorsCollinear(a2, a3, a4); | |
380 return !r1 && r2 == 1 || | |
381 r1 == 1 && !r2; | |
382 } | |
383 | |
384 //----- (004980B9) -------------------------------------------------------- | |
385 bool stru9::_4980B9(RenderVertexSoft *a1, unsigned int uNumVertices, float a3, float a4, float a5, RenderVertexSoft *pOutVertices, unsigned int *pOutNumVertices) | |
386 { | |
387 RenderVertexSoft *v12; // ecx@9 | |
388 double v13; // st7@12 | |
389 double v14; // st6@12 | |
390 double v15; // st5@12 | |
391 signed int v25; // [sp+18h] [bp-Ch]@7 | |
392 | |
393 static RenderVertexSoft stru_AE4BFC; | |
394 static stru312 static_sub_4980B9_stru_AE4BEC; // idb | |
395 static VertexBuffer static_sub_4980B9_stru_AE3FE8; // idb | |
396 | |
397 v25 = 0; | |
398 if (uNumVertices <= 0) | |
399 { | |
400 *pOutNumVertices = 0; | |
401 return true; | |
402 } | |
403 | |
404 for (uint i = 0; i < uNumVertices; ++i) | |
405 { | |
406 v12 = &a1[(i + 1) % uNumVertices]; | |
407 if (a1[i].vWorldPosition.x != v12->vWorldPosition.x || | |
408 a1[i].vWorldPosition.y != v12->vWorldPosition.y || | |
409 a1[i].vWorldPosition.z!= v12->vWorldPosition.z) | |
410 { | |
411 v13 = v12->vWorldPosition.x - a1[i].vWorldPosition.x; | |
412 v14 = v12->vWorldPosition.y - a1[i].vWorldPosition.y; | |
413 v15 = v12->vWorldPosition.z - a1[i].vWorldPosition.z; | |
414 ++v25; | |
415 | |
416 static_sub_4980B9_stru_AE3FE8.uNumVertices = 0; | |
417 static_sub_4980B9_stru_AE4BEC.x = a4 * v15 - v14 * a5; | |
418 static_sub_4980B9_stru_AE4BEC.y = v13 * a5 - v15 * a3; | |
419 static_sub_4980B9_stru_AE4BEC.z = v14 * a3 - v13 * a4; | |
420 if (*pOutNumVertices == 0) | |
421 return true; | |
422 | |
423 for (uint j = 0; j < *pOutNumVertices; ++j) | |
424 { | |
425 if (j) | |
426 { | |
427 if (_4989E1(&pOutVertices[j - 1], &pOutVertices[j], &a1[i], &static_sub_4980B9_stru_AE4BEC) && | |
428 _498774(&pOutVertices[j - 1], &pOutVertices[j], &a1[i], &static_sub_4980B9_stru_AE4BEC, &stru_AE4BFC)) | |
429 AddVertex(&static_sub_4980B9_stru_AE3FE8, &stru_AE4BFC); | |
430 } | |
431 | |
432 if (AreVectorsCollinear(&pOutVertices[j], &a1[i], &static_sub_4980B9_stru_AE4BEC)) | |
433 AddVertex(&static_sub_4980B9_stru_AE3FE8, &pOutVertices[j]); | |
434 } | |
435 | |
436 if (!static_sub_4980B9_stru_AE3FE8.uNumVertices) | |
437 { | |
438 *pOutNumVertices = 0; | |
439 return true; | |
440 } | |
441 if (_4989E1(&pOutVertices[*pOutNumVertices - 1], &pOutVertices[0], &a1[i], &static_sub_4980B9_stru_AE4BEC) && | |
442 _498774(&pOutVertices[*pOutNumVertices - 1], &pOutVertices[0], &a1[i], &static_sub_4980B9_stru_AE4BEC, &stru_AE4BFC) ) | |
443 AddVertex(&static_sub_4980B9_stru_AE3FE8, &stru_AE4BFC); | |
444 | |
445 for (uint j = 0; j < static_sub_4980B9_stru_AE3FE8.uNumVertices; ++j) | |
446 { | |
447 pOutVertices[j].vWorldPosition.y = static_sub_4980B9_stru_AE3FE8.pVertices[j].vWorldPosition.x; | |
448 pOutVertices[j].vWorldPosition.y = static_sub_4980B9_stru_AE3FE8.pVertices[j].vWorldPosition.y; | |
449 pOutVertices[j].vWorldPosition.z = static_sub_4980B9_stru_AE3FE8.pVertices[j].vWorldPosition.z; | |
450 pOutVertices[j].u = static_sub_4980B9_stru_AE3FE8.pVertices[j].u; | |
451 pOutVertices[j].v = static_sub_4980B9_stru_AE3FE8.pVertices[j].v; | |
452 } | |
453 *pOutNumVertices = static_sub_4980B9_stru_AE3FE8.uNumVertices; | |
454 } | |
455 } | |
456 | |
457 if (v25 < 3) | |
458 *pOutNumVertices = 0; | |
459 | |
460 return true; | |
461 } | |
462 // AE4C2C: using guessed type char static_sub_4980B9_byte_AE4C2C_init_flag; |