From 2119b4e333ff007bbc928aa862c9171ed23a7978 Mon Sep 17 00:00:00 2001 From: HJfod Date: Wed, 11 Sep 2024 13:02:57 +0300 Subject: [PATCH] actually save and load old custom settings --- loader/src/loader/SettingV3.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/loader/src/loader/SettingV3.cpp b/loader/src/loader/SettingV3.cpp index ab6da9a30..d7127fb13 100644 --- a/loader/src/loader/SettingV3.cpp +++ b/loader/src/loader/SettingV3.cpp @@ -638,9 +638,15 @@ void LegacyCustomSettingV3::setValue(std::shared_ptr value) { } bool LegacyCustomSettingV3::load(matjson::Value const& json) { + if (m_impl->legacyValue) { + return m_impl->legacyValue->load(json); + } return true; } bool LegacyCustomSettingV3::save(matjson::Value& json) const { + if (m_impl->legacyValue) { + return m_impl->legacyValue->save(json); + } return true; } SettingNodeV3* LegacyCustomSettingV3::createNode(float width) {