Skip to content

Commit c177411

Browse files
committed
Use filesystem::path for user config path
1 parent 54f5d26 commit c177411

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/core/Core/Window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Window::Window(const Settings& settings)
4141
ImGuiConfigFlags_ViewportsEnable;
4242

4343
// Absolute imgui.ini path to preserve settings independent of app location.
44-
static const std::string imgui_ini_filename{m_user_config_path + "imgui.ini"};
44+
static const std::string imgui_ini_filename{m_user_config_path.generic_string() + "imgui.ini"};
4545
io.IniFilename = imgui_ini_filename.c_str();
4646

4747
// ImGUI font

src/core/Core/Window.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <SDL3/SDL.h>
44

5+
#include <filesystem>
56
#include <string>
67

78
#include "Core/Resources.hpp"
@@ -39,7 +40,7 @@ class Window {
3940

4041
bool m_minimized{false};
4142

42-
const std::string m_user_config_path{Resources::get_user_config_path()};
43+
const std::filesystem::path m_user_config_path{Resources::get_user_config_path()};
4344

4445
bool m_show_some_panel{true};
4546
bool m_show_debug_panel{false};

0 commit comments

Comments
 (0)