From 7b4f56fc28af116f911e7a7d99d68e7aedd5662a Mon Sep 17 00:00:00 2001 From: maybegreat48 <96936658+maybegreat48@users.noreply.github.com> Date: Sun, 18 May 2025 09:44:30 -0400 Subject: [PATCH] feat: some fixes --- src/core/memory/PatternScanner.cpp | 5 +---- src/game/frontend/ChatDisplay.cpp | 25 ++++++++++++++----------- src/game/pointers/Pointers.cpp | 1 + 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/core/memory/PatternScanner.cpp b/src/core/memory/PatternScanner.cpp index b63decb..583377d 100644 --- a/src/core/memory/PatternScanner.cpp +++ b/src/core/memory/PatternScanner.cpp @@ -32,10 +32,7 @@ namespace YimMenu if (scanSuccess) scanSuccess = job.get(); } - if (!scanSuccess) - { - LOG(FATAL) << "Some patterns have not been found, continuing would be foolish."; - } + return scanSuccess; } diff --git a/src/game/frontend/ChatDisplay.cpp b/src/game/frontend/ChatDisplay.cpp index 3989ccd..b7f013a 100644 --- a/src/game/frontend/ChatDisplay.cpp +++ b/src/game/frontend/ChatDisplay.cpp @@ -42,22 +42,25 @@ namespace YimMenu ImGui::SetNextWindowSize(ImVec2(*Pointers.ScreenResX - x_pos - 10, *Pointers.ScreenResY - y_pos), ImGuiCond_Always); ImGui::SetNextWindowPos(ImVec2(x_pos, y_pos), ImGuiCond_Always); - ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0.0f, 0.0f, 0.0f, 0.0f)); - ImGui::PushFont(Menu::Font::g_ChatFont); - ImGui::Begin("##chatwin", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoInputs); - - for (auto& message : m_Messages) + if (ImGui::Begin("##chatwin", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoInputs)) { - ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(message.m_Color)); - ImGui::TextWrapped("%s:", message.m_Sender.data()); + ImGui::PushStyleColor(ImGuiCol_Border, ImVec4(0.0f, 0.0f, 0.0f, 0.0f)); + ImGui::PushFont(Menu::Font::g_ChatFont); + + for (auto& message : m_Messages) + { + ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(message.m_Color)); + ImGui::TextWrapped("%s:", message.m_Sender.data()); + ImGui::PopStyleColor(); + ImGui::SameLine(); + ImGui::TextWrapped("%s", message.m_Message.data()); + } + + ImGui::PopFont(); ImGui::PopStyleColor(); - ImGui::SameLine(); - ImGui::TextWrapped("%s", message.m_Message.data()); } - ImGui::PopFont(); - ImGui::PopStyleColor(); ImGui::End(); } diff --git a/src/game/pointers/Pointers.cpp b/src/game/pointers/Pointers.cpp index 3eb2fc0..fda6d8d 100644 --- a/src/game/pointers/Pointers.cpp +++ b/src/game/pointers/Pointers.cpp @@ -373,6 +373,7 @@ namespace YimMenu if (IsSocialClubNeverGoingToLoad()) { + LOG(WARNING) << "Timed out checking for socialclub.dll"; return false; }