Fix toml parser failing on Unicode paths.

This commit is contained in:
Dario 2024-12-15 01:27:50 -03:00
parent 10c8858416
commit c6e3d4e31f

View file

@ -13,7 +13,12 @@ void Config::Load()
try
{
auto toml = toml::parse_file(configPath.string());
toml::parse_result toml;
std::ifstream tomlStream(configPath);
if (tomlStream.is_open())
{
toml = toml::parse(tomlStream);
}
for (auto def : Config::Definitions)
{