mirror of https://github.com/AxioDL/metaforce.git
Use fileStorage directory for imgui settings
This commit is contained in:
parent
8151e0fe80
commit
89f58beeb1
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue