Change how defaults work in the inifile reader (more flexible this way)

This commit is contained in:
Henrik Rydgård committed 2025-10-31 21:57:52 +01:00
1 parent c98b7591d3
commit 14ddad5ce3
14 files changed
+266 -181

No files matched your search

+3 -1
View File
@@ -2797,7 +2797,9 @@ public:
if (save_) {
section_->Set(key, *value);
} else {
section_->Get(key, value, defaultValue);
if (!section_->Get(key, value)) {
*value = defaultValue;
}
}
}
private: