fs: implement newer allocator templates

This commit is contained in:
Michael Scire authored and SciresM committed 2022-02-21 15:17:17 -08:00
1 parent ace409ccec
commit 64b4cc25fc
3 files changed
+144 -16

No files matched your search

@@ -352,7 +352,7 @@ namespace ams::fssystem {
R_UNLESS(storage_size > 0, fs::ResultInvalidNcaHeader());
/* Allocate a substorage. */
*out = AllocateShared<DerivedStorageHolder<fs::SubStorage, 0>>(m_reader->GetBodyStorage(), storage_offset, storage_size, m_reader);
*out = fssystem::AllocateShared<DerivedStorageHolder<fs::SubStorage, 0>>(m_reader->GetBodyStorage(), storage_offset, storage_size, m_reader);
R_UNLESS(*out != nullptr, fs::ResultAllocationFailureInAllocateShared());
return ResultSuccess();