aboutsummaryrefslogtreecommitdiff
path: root/core/src/Entrypoint
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-03-30 19:40:11 -0700
committerrtk0c <[email protected]>2021-03-30 19:40:11 -0700
commit31950890c939862f79c817053c106bf711c63a64 (patch)
tree4e02abf37d69ab7d4f988f143b340cfd3d93331c /core/src/Entrypoint
parente75e26da92424528e190a2111acfcc49c657e894 (diff)
Product items and misc stuff
Diffstat (limited to 'core/src/Entrypoint')
-rw-r--r--core/src/Entrypoint/main.cpp6
1 files changed, 5 insertions, 1 deletions
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<std::string>("--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<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)
+ // 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;