load imgui configs from 'cfg/imgui/*' instead

This commit is contained in:
Kawe Mazidjatari 2022-11-10 15:33:35 +01:00
parent 91052d8e9e
commit 93bca826ef
2 changed files with 2 additions and 2 deletions

View File

@ -1126,7 +1126,7 @@ ImGuiIO::ImGuiIO()
DisplaySize = ImVec2(-1.0f, -1.0f);
DeltaTime = 1.0f / 60.0f;
IniSavingRate = 5.0f;
IniFilename = "platform\\layout.ini"; // Important: "imgui.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables).
IniFilename = "platform\\cfg\\imgui\\layout.ini"; // Important: "imgui_layout.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables).
LogFilename = "platform\\logs\\imgui_log.txt";
MouseDoubleClickTime = 0.30f;
MouseDoubleClickMaxDist = 6.0f;

View File

@ -45,7 +45,7 @@ void Strtrim(char* s)
void ImGuiConfig::Load()
{
static const fs::path fsPath = "platform\\imgui.json";
static const fs::path fsPath = "platform\\cfg\\imgui\\bind.json";
DevMsg(eDLL_T::MS, "Loading ImGui config file '%s'\n", fsPath.relative_path().u8string().c_str());
if (!fs::exists(fsPath))