feat(updater): final step for portable install

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2023-06-24 22:21:16 -07:00
parent d2a3acd493
commit 4313466589
8 changed files with 256 additions and 55 deletions

View File

@ -108,10 +108,11 @@ ModDetails ReadMCModTOML(QByteArray contents)
return {};
}
#else
tomlData = toml::parse(contents.toStdString());
if (!tomlData) {
toml::parse_result result = toml::parse(contents.toStdString());
if (!result) {
return {};
}
tomlData = result.table();
#endif
// array defined by [[mods]]