[Core] Fix config resetting

This commit is contained in:
Adrian 2023-07-29 17:04:36 +01:00 committed by Radosław Gliński
parent df7146818d
commit a180813fcf
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ std::shared_ptr<cpptoml::table> ParseFile(
XELOGI("Loading config: {}\n{}", xe::path_to_utf8(filename), config_content);
}
file.clear();
file.seekg(0);
cpptoml::parser p(file);
return p.parse();
}