Skip to content

Commit

Permalink
Merge pull request #1106 from olivia-may/master
Browse files Browse the repository at this point in the history
Fix imgui.ini file dumping
  • Loading branch information
KINGTUT10101 authored Oct 9, 2024
2 parents 05a128e + d74b387 commit 7d5cd40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/engine/WindowManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -238,4 +242,4 @@ void WindowManager::renderScreen()

// Render the Frame
SDL_RenderPresent(m_renderer);
}
}

0 comments on commit 7d5cd40

Please sign in to comment.