mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
load imgui configs from 'cfg/imgui/*' instead
This commit is contained in:
parent
91052d8e9e
commit
93bca826ef
2
r5dev/thirdparty/imgui/src/imgui.cpp
vendored
2
r5dev/thirdparty/imgui/src/imgui.cpp
vendored
@ -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;
|
||||
|
2
r5dev/thirdparty/imgui/src/imgui_utility.cpp
vendored
2
r5dev/thirdparty/imgui/src/imgui_utility.cpp
vendored
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user