mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-18 04:06:42 -04:00
Enhance:ini registry sequence (#121)
* '+=' supported . * introduced registry list value deduplication . * TechnoType listing now parse data both from ini and map . * added UT case .
This commit is contained in:
parent
3e90dca667
commit
93e956e7ac
8 changed files with 164 additions and 50 deletions
|
@ -129,6 +129,15 @@ public:
|
|||
return Iterator(m_section, m_source.end(), m_source.end(), secItEnd, secItEnd);
|
||||
}
|
||||
|
||||
bool HasValue(const CString& expected) const {
|
||||
for (auto const& [_, val] : *this) {
|
||||
if (val == expected) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private:
|
||||
// attention: beginning iter
|
||||
static std::pair< KvIter, KvIter> acquireNextKvGroup(const CString& section, GroupIter& beg, const GroupIter end) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue