From 9a8b87d431b03f30b11336b746410b7d27a7011a Mon Sep 17 00:00:00 2001 From: Pepe20129 <72659707+Pepe20129@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:55:38 +0100 Subject: [PATCH] Update mod_menu.cpp --- soh/soh/Enhancements/mod_menu.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/soh/soh/Enhancements/mod_menu.cpp b/soh/soh/Enhancements/mod_menu.cpp index 5c68d550a..b4f415ab1 100644 --- a/soh/soh/Enhancements/mod_menu.cpp +++ b/soh/soh/Enhancements/mod_menu.cpp @@ -116,6 +116,10 @@ void AfterModChange() { Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame(); } +void DrawModInfo(std::string file) { + ImGui::Text(file.c_str()); +} + void ModMenuWindow::DrawElement() { if (ImGui::Button("Update")) { UpdateModFiles(); @@ -141,7 +145,7 @@ void ModMenuWindow::DrawElement() { AfterModChange(); } ImGui::SameLine(); - ImGui::Text(file.c_str()); + DrawModInfo(file); } } else { ImGui::Text(""); @@ -162,7 +166,7 @@ void ModMenuWindow::DrawElement() { AfterModChange(); } ImGui::SameLine(); - ImGui::Text(file.c_str()); + DrawModInfo(file); } } else { ImGui::Text("");