From d74b3874dc437d5a2e53b4f412ac4d9b7dd463e0 Mon Sep 17 00:00:00 2001 From: Olivia May Date: Wed, 9 Oct 2024 12:30:03 -0500 Subject: [PATCH] Fix imgui.ini file dumping --- src/engine/WindowManager.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/WindowManager.cxx b/src/engine/WindowManager.cxx index 6f9d6efcc6..a037b9f384 100644 --- a/src/engine/WindowManager.cxx +++ b/src/engine/WindowManager.cxx @@ -173,6 +173,10 @@ void WindowManager::initializeImguiRenderer() ImGui::CreateContext(); ImGui::StyleColorsDark(); + // Disable creating imgui.ini files + ImGuiIO& io = ImGui::GetIO(); + io.IniFilename = nullptr; + // Setup Platform/Renderer backends ImGui_ImplSDL2_InitForSDLRenderer(m_window, m_renderer); ImGui_ImplSDLRenderer_Init(m_renderer); @@ -238,4 +242,4 @@ void WindowManager::renderScreen() // Render the Frame SDL_RenderPresent(m_renderer); -} \ No newline at end of file +}