mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-23 13:04:50 +00:00
settings: update KeyValueStore for recent refactoring
This commit is contained in:
parent
a9c2b4299f
commit
5526184b99
2 changed files with 4 additions and 0 deletions
|
@ -214,6 +214,7 @@ namespace ams::settings::impl {
|
|||
~Allocator() { /* ... */ }
|
||||
|
||||
pointer allocate(size_type n, const_pointer hint = 0) {
|
||||
AMS_UNUSED(hint);
|
||||
return static_cast<pointer>(AllocateFromHeap(sizeof(T) * n));
|
||||
}
|
||||
|
||||
|
@ -267,6 +268,7 @@ namespace ams::settings::impl {
|
|||
}
|
||||
|
||||
void FreeToHeap(void *block, size_t size) {
|
||||
AMS_UNUSED(size);
|
||||
lmem::FreeToExpHeap(*GetHeapHandle(), block);
|
||||
}
|
||||
|
||||
|
@ -582,6 +584,7 @@ namespace ams::settings::impl {
|
|||
|
||||
/* Load the map entries. */
|
||||
R_TRY(LoadKeyValueStoreMapEntries(out, data, [](Map &map, const MapKey &key, u8 type, const void *value_buffer, u32 value_size) -> Result {
|
||||
AMS_UNUSED(type);
|
||||
/* Find the key in the map. */
|
||||
if (auto it = map.find(key); it != map.end()) {
|
||||
MapValue &map_value = it->second;
|
||||
|
|
|
@ -97,6 +97,7 @@ namespace ams::settings::impl {
|
|||
|
||||
Result LazyFileAccessor::Commit(const char *name, bool synchronous) {
|
||||
AMS_ASSERT(name != nullptr);
|
||||
AMS_UNUSED(name);
|
||||
std::scoped_lock lk(m_mutex);
|
||||
|
||||
AMS_ASSERT(m_is_activated);
|
||||
|
|
Loading…
Add table
Reference in a new issue