um i think this owrks
This commit is contained in:
parent
cf51e3e569
commit
2219182539
9 changed files with 306 additions and 334 deletions
|
@ -1,6 +1,5 @@
|
|||
#include <cstdlib>
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "config.h"
|
||||
|
@ -149,6 +148,8 @@ fn Config::getInstance() -> Config {
|
|||
}
|
||||
|
||||
const toml::parse_result config = toml::parse_file(configPath.string());
|
||||
|
||||
DEBUG_LOG("Config loaded from {}", configPath.string());
|
||||
return fromToml(config);
|
||||
} catch (const std::exception& e) {
|
||||
DEBUG_LOG("Config loading failed: {}, using defaults", e.what());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue