2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 15:01:49 +00:00

ImGuiEngine updates & use ImGui stdlib functions

This commit is contained in:
2021-06-02 07:49:03 -04:00
parent 89f58beeb1
commit 281da0bfd4
6 changed files with 52 additions and 38 deletions

View File

@@ -220,7 +220,6 @@ private:
hecl::CVarCommons& m_cvarCommons;
ImGuiConsole m_imGuiConsole;
std::string m_errorString;
std::string m_configPath;
boo::ObjToken<boo::ITextureR> m_renderTex;
hecl::SystemString m_deferredProject;
@@ -392,10 +391,8 @@ 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();
hecl::SystemUTF8Conv configDir{m_fileMgr.getStoreRoot()};
ImGuiEngine::Initialize(gfxF, m_window.get(), scale, configDir.str());
m_imGuiInitialized = true;
}