mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-25 17:07:58 -05:00
actually save and load old custom settings
This commit is contained in:
parent
818d8bfe28
commit
2119b4e333
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue