From b620d2161dd0ca78a5833919fad59422f90d7e09 Mon Sep 17 00:00:00 2001 From: Dongxu Li Date: Mon, 11 Sep 2023 20:34:50 -0400 Subject: [PATCH] settings --- lcUI/managers/uisettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcUI/managers/uisettings.cpp b/lcUI/managers/uisettings.cpp index 3e1f8f1c..6a5d8cfc 100644 --- a/lcUI/managers/uisettings.cpp +++ b/lcUI/managers/uisettings.cpp @@ -247,7 +247,7 @@ rapidjson::Document UiSettings::getSettingsDocument(std::string fileName) { std::cout << "No settings file found, loading default settings." << std::endl; fileName = defaultSettingsFileName; std::cout << "No settings file found, loading default settings: "<<_filePaths["settings_load"] + fileName<open(_filePaths["settings_load"] + fileName); + static_cast(settingsFile.get())->open(_filePaths["settings_load"] + fileName); if (settingsFile->fail()) settingsFile = std::make_unique(defaultUiSettings); }