um i think this owrks

This commit is contained in:
Mars 2025-04-23 21:47:25 -04:00
parent cf51e3e569
commit 2219182539
9 changed files with 306 additions and 334 deletions

View file

@ -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());