From 89f58beeb1f671aa7c083af08d9448a7753c6beb Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 2 Jun 2021 03:28:36 -0700 Subject: [PATCH] Use fileStorage directory for imgui settings --- Runtime/CMain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Runtime/CMain.cpp b/Runtime/CMain.cpp index 68cd1cab1..c349a23d0 100644 --- a/Runtime/CMain.cpp +++ b/Runtime/CMain.cpp @@ -220,6 +220,7 @@ private: hecl::CVarCommons& m_cvarCommons; ImGuiConsole m_imGuiConsole; std::string m_errorString; + std::string m_configPath; boo::ObjToken m_renderTex; hecl::SystemString m_deferredProject; @@ -392,6 +393,9 @@ public: } if (!m_imGuiInitialized) { ImGuiEngine::Initialize(gfxF, m_window.get(), scale); + m_configPath = hecl::SystemUTF8Conv(m_fileMgr.getStoreRoot()).str(); + m_configPath += "/imgui.ini"; + ImGui::GetIO().IniFilename = m_configPath.c_str(); m_imGuiInitialized = true; }