mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
move make preferred to parse as well
This commit is contained in:
parent
43adb35311
commit
1281c7663a
1 changed files with 2 additions and 0 deletions
|
@ -1052,6 +1052,8 @@ Result<std::shared_ptr<FileSettingV3>> FileSettingV3::parse(std::string const& k
|
|||
auto root = checkJson(json, "FileSettingV3");
|
||||
ret->parseBaseProperties(key, modID, root);
|
||||
|
||||
ret->setDefaultValue(ret->getDefaultValue().make_preferred());
|
||||
|
||||
// Replace known paths like `{gd-save-dir}/`
|
||||
try {
|
||||
ret->setDefaultValue(fmt::format(
|
||||
|
|
Loading…
Reference in a new issue