Use fileStorage directory for imgui settings

This commit is contained in:
Phillip Stephens 2021-06-02 03:28:36 -07:00
parent 8151e0fe80
commit 89f58beeb1
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 4 additions and 0 deletions

View File

@ -220,6 +220,7 @@ private:
hecl::CVarCommons& m_cvarCommons; hecl::CVarCommons& m_cvarCommons;
ImGuiConsole m_imGuiConsole; ImGuiConsole m_imGuiConsole;
std::string m_errorString; std::string m_errorString;
std::string m_configPath;
boo::ObjToken<boo::ITextureR> m_renderTex; boo::ObjToken<boo::ITextureR> m_renderTex;
hecl::SystemString m_deferredProject; hecl::SystemString m_deferredProject;
@ -392,6 +393,9 @@ public:
} }
if (!m_imGuiInitialized) { if (!m_imGuiInitialized) {
ImGuiEngine::Initialize(gfxF, m_window.get(), scale); 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; m_imGuiInitialized = true;
} }