From 1281c7663aa2aa42fa588c1cc1dc8334ee434e6f Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Fri, 13 Sep 2024 20:11:45 +0300 Subject: [PATCH] move make preferred to parse as well --- loader/src/loader/SettingV3.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loader/src/loader/SettingV3.cpp b/loader/src/loader/SettingV3.cpp index d7127fb1..04f0fa80 100644 --- a/loader/src/loader/SettingV3.cpp +++ b/loader/src/loader/SettingV3.cpp @@ -1052,6 +1052,8 @@ Result> 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(