From 31950890c939862f79c817053c106bf711c63a64 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Tue, 30 Mar 2021 19:40:11 -0700 Subject: Product items and misc stuff --- core/src/Entrypoint/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/src/Entrypoint/main.cpp') diff --git a/core/src/Entrypoint/main.cpp b/core/src/Entrypoint/main.cpp index ce8aab7..5811547 100644 --- a/core/src/Entrypoint/main.cpp +++ b/core/src/Entrypoint/main.cpp @@ -129,6 +129,8 @@ int main(int argc, char* argv[]) { auto backendOption = parser.get("--rendering-backend"); auto backend = CreateBackend(backendOption); + ImGui::GetIO().IniFilename = nullptr; + ImGui::GetIO().LogFilename = nullptr; ImGui::StyleColorsLight(); // Includes latin alphabet, although for some reason smaller than if rendered using 18 point NotoSans regular @@ -140,7 +142,7 @@ int main(int argc, char* argv[]) { ImGui::GetIO().Fonts->AddFontFromFileTTF("fonts/FontAwesome5-Solid.otf", 14, &config, iconRanges); I18n::OnReload.Connect([]() { LocaleStrings::Instance = std::make_unique(); }); - // 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) + // Do i18n initialization 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"); @@ -151,9 +153,11 @@ int main(int argc, char* argv[]) { while (!glfwWindowShouldClose(window)) { backend->BeginFrame(); UI::MainWindow(); + ImGui::ShowDemoWindow(); backend->EndFrame(); } + UIState::Shutdown(); GlobalStates::Shutdown(); return 0; -- cgit v1.2.3-70-g09d2