From 73a3214019948ebbf5f5378af7002a582b4974c2 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 31 Jan 2024 09:07:00 -0500 Subject: [PATCH] Match Infocenter::UpdateFrameHot --- .../legoomni/src/infocenter/infocenter.cpp | 16 +- out.html | 274 ++++++++++++++++++ 2 files changed, 285 insertions(+), 5 deletions(-) create mode 100644 out.html diff --git a/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp b/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp index 37921249..a4d386b3 100644 --- a/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp +++ b/LEGO1/lego/legoomni/src/infocenter/infocenter.cpp @@ -771,35 +771,41 @@ void Infocenter::FUN_10070d10(MxS32 p_x, MxS32 p_y) void Infocenter::UpdateFrameHot(MxBool p_display) { if (p_display) { - MxU32 x; + MxS32 x, y; + switch (GameState()->GetUnknownC()) { case 1: x = 302; + y = 81; break; case 2: x = 204; + y = 81; break; case 3: x = 253; + y = 81; break; case 4: x = 353; + y = 81; break; case 5: x = 399; + y = 81; break; default: return; } - MxS32 oldZ = m_frameHotBitmap->GetDisplayZ(); + MxS32 originalDisplayZ = m_frameHotBitmap->GetDisplayZ(); m_frameHotBitmap->SetDisplayZ(1000); VideoManager()->SortPresenterList(); - m_frameHotBitmap->Enable(TRUE); - m_frameHotBitmap->VTable0x88(x, 81); - m_frameHotBitmap->SetDisplayZ(oldZ); + m_frameHotBitmap->Enable(TRUE); + m_frameHotBitmap->VTable0x88(x, y); + m_frameHotBitmap->SetDisplayZ(originalDisplayZ); } else { if (m_frameHotBitmap) { diff --git a/out.html b/out.html new file mode 100644 index 00000000..33391d22 --- /dev/null +++ b/out.html @@ -0,0 +1,274 @@ + + + + Decompilation Status + + + + +
+

Decompilation Status

+ +
+ + +
+ + +
AddressNameMatching
+
+ +