From 4a4939e65b7afea1bc68958ab79d4982bbd74c6d Mon Sep 17 00:00:00 2001 From: Mars Date: Fri, 18 Oct 2024 13:35:59 -0400 Subject: [PATCH] stop writing imgui.ini --- src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 52d0de2..9447aed 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -342,6 +342,14 @@ class VulkanApp { IMGUI_CHECKVERSION(); ImGui::CreateContext(); + // Remember to use a reference here, otherwise + // the ImGui::GetIO() function will return a + // copy and the changes won't be saved. + ImGuiIO& imGuiIO = ImGui::GetIO(); + + // Disable writing imgui.ini + imGuiIO.IniFilename = nullptr; + // Setup Dear ImGui style ImGui::StyleColorsDark();