mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Fix toml parser failing on Unicode paths.
This commit is contained in:
parent
10c8858416
commit
c6e3d4e31f
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue