Skip to content

Commit

Permalink
actually save and load old custom settings
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Sep 11, 2024
1 parent 818d8bf commit 2119b4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions loader/src/loader/SettingV3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,15 @@ void LegacyCustomSettingV3::setValue(std::shared_ptr<SettingValue> 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) {
Expand Down

0 comments on commit 2119b4e

Please sign in to comment.