mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 07:39:49 -04:00
ncm: update for new add on content/attr changes
This commit is contained in:
parent
ef07964ea0
commit
427130a122
14 changed files with 290 additions and 143 deletions
|
@ -32,4 +32,6 @@ namespace ams::lr {
|
|||
|
||||
R_DEFINE_ERROR_RESULT(TooManyRegisteredPaths, 90);
|
||||
|
||||
R_DEFINE_ERROR_RESULT(InvalidPath, 140);
|
||||
|
||||
}
|
||||
|
|
|
@ -134,6 +134,15 @@ namespace ams::util {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
template<typename F>
|
||||
void RemoveIf(F f) {
|
||||
for (size_t i = 0; i < N; ++i) {
|
||||
if (m_keys[i] && f(m_keys[i].value(), GetReference(m_values[i]))) {
|
||||
this->FreeEntry(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue