Skip to content

Commit

Permalink
settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Sep 12, 2023
1 parent 979c9ee commit b620d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcUI/managers/uisettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<<std::endl;
settingsFile->open(_filePaths["settings_load"] + fileName);
static_cast<std::ifstream>(settingsFile.get())->open(_filePaths["settings_load"] + fileName);
if (settingsFile->fail())
settingsFile = std::make_unique<std::istringstream>(defaultUiSettings);
}
Expand Down

0 comments on commit b620d21

Please sign in to comment.