From ebf0aa49eaa1cc118950502d6e6eded352220ac3 Mon Sep 17 00:00:00 2001 From: Ciremun Date: Tue, 16 Apr 2024 23:39:20 +0300 Subject: [PATCH] dont load settings with null --- freedom/ui/ui.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/freedom/ui/ui.cpp b/freedom/ui/ui.cpp index 5e36450..8fd47d9 100644 --- a/freedom/ui/ui.cpp +++ b/freedom/ui/ui.cpp @@ -110,9 +110,10 @@ void init_ui(IDirect3DDevice9* pDevice) set_imgui_ini_handler(); io.IniFilename = get_imgui_ini_filename(g_module); - if (io.IniFilename == 0) { FR_INFO("[!] Couldn't get config path"); } - - ImGui::LoadIniSettingsFromDisk(io.IniFilename); + if (io.IniFilename == 0) + { FR_INFO("[!] Couldn't get config path"); } + else + ImGui::LoadIniSettingsFromDisk(io.IniFilename); init_imgui_fonts(); init_imgui_styles();