ImGui: load and save imgui layout configuration from user cfg directory

Keep it separate from the system configurations.
This commit is contained in:
Kawe Mazidjatari 2024-10-08 23:07:24 +02:00
parent 3974ba70bb
commit 455b7220f9

View File

@ -1278,7 +1278,7 @@ ImGuiIO::ImGuiIO()
DisplaySize = ImVec2(-1.0f, -1.0f);
DeltaTime = 1.0f / 60.0f;
IniSavingRate = 5.0f;
IniFilename = "platform\\cfg\\system\\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\\user\\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).
LogFilename = "platform\\logs\\imgui_log.txt";
#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO
for (int i = 0; i < ImGuiKey_COUNT; i++)