From 4c5dede891ea0934d77bfcee8f50f9702c949031 Mon Sep 17 00:00:00 2001 From: robojumper Date: Fri, 9 May 2025 18:28:45 +0200 Subject: d_message OK (via dFlow_c) --- src/d/lyt/msg_window/d_lyt_msg_window.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/d/lyt/msg_window') diff --git a/src/d/lyt/msg_window/d_lyt_msg_window.cpp b/src/d/lyt/msg_window/d_lyt_msg_window.cpp index 9dafff64..af85c022 100644 --- a/src/d/lyt/msg_window/d_lyt_msg_window.cpp +++ b/src/d/lyt/msg_window/d_lyt_msg_window.cpp @@ -33,7 +33,7 @@ #include "toBeSorted/arc_managers/layout_arc_manager.h" #include "toBeSorted/d_d3d.h" #include "toBeSorted/event_manager.h" -#include "toBeSorted/global_fi_context.h" +#include "toBeSorted/fi_context.h" #include "toBeSorted/lyt_related_floats.h" #include "toBeSorted/music_mgrs.h" #include "toBeSorted/other_sound_stuff.h" @@ -89,8 +89,8 @@ bool dLytMsgWindow_c::build() { mpTagProcessor = new dTagProcessor_c(); mpMsgWindowUnk = new TextWindowUnk(mpTagProcessor); - if (GLOBAL_FI_CONTEXT != nullptr) { - fn_8016C9F0(GLOBAL_FI_CONTEXT); + if (FiContext::GetInstance() != nullptr) { + FiContext::GetInstance()->resetField_0x3C(); } mpWindowTalk = nullptr; @@ -514,8 +514,8 @@ void dLytMsgWindow_c::executeState_WaitKeySelectQuestion() { field_0x824 = 0; mTextOptionSelection = selection; field_0x1220 = 0; - if (GLOBAL_FI_CONTEXT != nullptr) { - doFiThing = GLOBAL_FI_CONTEXT->mDoSpecialFiMenuHandling; + if (FiContext::GetInstance() != nullptr) { + doFiThing = FiContext::GetInstance()->getDoSpecialFiMenuHandling(); } if (doFiThing) { @@ -714,10 +714,10 @@ bool dLytMsgWindow_c::draw() { return true; } -void dLytMsgWindow_c::setCurrentLabelName(const char *name, bool storeFile) { +bool dLytMsgWindow_c::setCurrentLabelName(const char *name, bool storeFile) { // TODO mName = name; - !std::strcmp(name, "FR_SIREN_04"); + return !std::strcmp(name, "FR_SIREN_04"); } bool dLytMsgWindow_c::isVisible() const { -- cgit v1.2.3