diff options
author | rtk0c <[email protected]> | 2021-03-29 13:47:55 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-03-29 13:47:55 -0700 |
commit | 6032ae108064650324b2c45352e1baa5b36961cc (patch) | |
tree | 79ebd1df933ca9c3d8de4a5a537fffeadf7a6c9b /core/src/Entrypoint/main.cpp | |
parent | 2d7e772909571676dd4266337d43086bd2927e93 (diff) |
Project tab
Diffstat (limited to 'core/src/Entrypoint/main.cpp')
-rw-r--r-- | core/src/Entrypoint/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/Entrypoint/main.cpp b/core/src/Entrypoint/main.cpp index 9f57a5e..39943d6 100644 --- a/core/src/Entrypoint/main.cpp +++ b/core/src/Entrypoint/main.cpp @@ -6,6 +6,7 @@ #include "Entrypoint/OpenGL3.hpp" #include "Entrypoint/Vulkan.hpp" #include "UI/Localization.hpp" +#include "UI/States.hpp" #include "UI/UI.hpp" #include "Utils/I18n.hpp" #include "Utils/Sigslot.hpp" @@ -137,11 +138,13 @@ int main(int argc, char* argv[]) { config.MergeMode = true; ImGui::GetIO().Fonts->AddFontFromFileTTF("fonts/FontAwesome5-Solid.otf", 14, &config, iconRanges); - I18n::reloadSignal.Connect([]() { LocaleStrings::Instance = std::make_unique<LocaleStrings>(); }); + I18n::OnReload.Connect([]() { LocaleStrings::Instance = std::make_unique<LocaleStrings>(); }); // Do i18n intialization after linking reload signals, so that when SetLanguage() is called, the locale strings will be initialized (without us writing the code another time outside the slot) I18n::Init(); I18n::SetLanguage("zh_CN"); + UIState::Init(); + auto window = backend->GetWindow(); while (!glfwWindowShouldClose(window)) { backend->BeginFrame(); |