We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bef0c0 commit ddac532Copy full SHA for ddac532
src/config.cpp
@@ -315,6 +315,10 @@ void SaveConfig(const std::string &filename) {
315
316
Config LoadConfig(const std::string &filename) {
317
const auto path = ConfigPath() / filename;
318
+ if (!std::filesystem::exists(path)) {
319
+ logging::Warning("config file invalid, loading defaults");
320
+ return {};
321
+ }
322
std::ifstream file(path);
323
if (!file.good()) {
324
logging::Warning("config file invalid, loading defaults");
0 commit comments