From d80fe7e0a7f950f1cfc44628c1ef735daeb1794b Mon Sep 17 00:00:00 2001 From: Eknous-P Date: Tue, 24 Dec 2024 22:13:02 +0400 Subject: [PATCH] fix user systems not loading when language is not english --- src/gui/newSong.cpp | 2 +- src/gui/userPresets.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/newSong.cpp b/src/gui/newSong.cpp index 84e45e987..2fcce70db 100644 --- a/src/gui/newSong.cpp +++ b/src/gui/newSong.cpp @@ -198,7 +198,7 @@ void FurnaceGUI::drawNewSong() { if (ImGui::IsItemHovered()) { ImGui::SetTooltip("%s",i.description); } - if (strcmp(i.name,"User")==0) ImGui::Separator(); + if (strcmp(i.name,_("User"))==0) ImGui::Separator(); index++; } } diff --git a/src/gui/userPresets.cpp b/src/gui/userPresets.cpp index 909bed613..45f53643b 100644 --- a/src/gui/userPresets.cpp +++ b/src/gui/userPresets.cpp @@ -130,7 +130,7 @@ bool FurnaceGUI::loadUserPresets(bool redundancy, String path, bool append) { FurnaceGUISysCategory* userCategory=NULL; for (FurnaceGUISysCategory& i: sysCategories) { - if (strcmp(i.name,"User")==0) { + if (strcmp(i.name,_("User"))==0) { userCategory=&i; break; } @@ -226,7 +226,7 @@ bool FurnaceGUI::saveUserPresets(bool redundancy, String path) { FurnaceGUISysCategory* userCategory=NULL; for (FurnaceGUISysCategory& i: sysCategories) { - if (strcmp(i.name,"User")==0) { + if (strcmp(i.name,_("User"))==0) { userCategory=&i; break; } @@ -336,7 +336,7 @@ void FurnaceGUI::drawUserPresets() { if (ImGui::Begin("User Systems",&userPresetsOpen,globalWinFlags,_("User Systems"))) { FurnaceGUISysCategory* userCategory=NULL; for (FurnaceGUISysCategory& i: sysCategories) { - if (strcmp(i.name,"User")==0) { + if (strcmp(i.name,_("User"))==0) { userCategory=&i; break; }