mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 20:31:41 +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
|
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)
|
for (auto def : Config::Definitions)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue