From 43cef29c6d9e99bcc5b4309dad33608a4f0571f7 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 30 Nov 2019 17:41:07 -0600 Subject: [PATCH] [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. --- src/xenia/ui/imgui_drawer.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/ui/imgui_drawer.cc b/src/xenia/ui/imgui_drawer.cc index f38f20901..3f0c0b9f8 100644 --- a/src/xenia/ui/imgui_drawer.cc +++ b/src/xenia/ui/imgui_drawer.cc @@ -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;