// AUTO-GENERATED FILE, MOVE TO 'gh_fix' FOLDER PREVENT OVERWRITING!!!!! #include #include extern "C" { undefined FUN_00447130(void); // 00447130 // FUN_00447130 // cdecl void doGraphics(byte param_1); // 00447460 // doGraphics // stdcall bool UNKr3_renderViewport(byte viewportIdx); // 00447200 // ?r3_renderViewport // stdcall undefined FUN_0046fec0(void); // 0046fec0 // FUN_0046fec0 // cdecl int get_one(void); // 0046f2c0 // get_one // cdecl undefined FUN_00451530(undefined4 param_1); // 00451530 // FUN_00451530 // cdecl undefined FUN_0048a920(undefined4 param_1); // 0048a920 // FUN_0048a920 // cdecl undefined FUN_0045fc70(undefined4 param_1); // 0045fc70 // FUN_0045fc70 // cdecl // 00446fc0 /* WARNING: Inlined function: get_one */ void __cdecl r3_levelDisplayFn(byte param) { int iVar1; int *piVar2; char cVar3; FUN_00447130(); WaitForSingleObject(g_stEngineStructure.drawSemaphore,0xffffffff); if (((g_stEngineStructure + Field<1556, 4>() == 0) || (DAT_005d2b18 != 0)) || (param == 0)) { if (DAT_005e693c != 0) { ReleaseSemaphore(g_stEngineStructure.drawSemaphore,1,(LPLONG)0x0); return; } FUN_0048a920(~-(uint)(DAT_007d98fc != '\0') & g_stEngineStructure.stEngineTimer.ulUsefulDeltaTime); FUN_00451530(param); DAT_0063be24 = 1; UNKr3_renderViewport(param); doGraphics(param); if (DAT_005d2b18 != 0) { if (param == 0) { param = 0; for (piVar2 = (int *)(g_stEngineStructure + Field<1500, 4>()); piVar2 != (int *)0x0; piVar2 = (int *)piVar2[1]) { iVar1 = *(int *)(*(int *)(*piVar2 + 4) + 0x10); cVar3 = FUN_0045fc70(*(undefined4 *)(iVar1 + 4)); if (cVar3 != '\0') { param = param + 1; } if (param == (uint32_t&)DAT_005d2b18) { FUN_0045fc70(*(undefined4 *)(iVar1 + 4)); } } } if (DAT_005d2b18 != 0) { FUN_0046fec0(0,0,0,0); } } /* WARNING: Could not inline here */ get_one(); ReleaseSemaphore(g_stEngineStructure.drawSemaphore,1,(LPLONG)0x0); } return; } }