[UI] Disable saving of imgui INI file.

By default imgui saves an INI file named 'imgui.ini' to the current directory,
which is undesired behavior. Until we can properly specify a full path to
a good location, disable saving of the INI file.
This commit is contained in:
gibbed 2019-11-30 17:41:07 -06:00 committed by Rick Gibbed
parent bc8b629092
commit 43cef29c6d
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ void ImGuiDrawer::Initialize() {
auto& io = ImGui::GetIO();
// TODO(gibbed): disable imgui.ini saving for now,
// imgui assumes paths are char* so we can't throw a good path at it on
// Windows.
io.IniFilename = nullptr;
SetupFont();
io.DeltaTime = 1.0f / 60.0f;