libstrat: convert to experimental new (super-accurate) sf allocation semantics

This commit is contained in:
Michael Scire authored and SciresM committed 2021-01-20 23:39:31 -08:00
1 parent 8314d015f3
commit f06de12bea
149 files changed
+2852 -1746

No files matched your search

@@ -24,6 +24,7 @@
namespace ams::erpt::srv {
lmem::HeapHandle g_heap_handle;
ams::sf::ExpHeapAllocator g_sf_allocator;
namespace {
@@ -79,6 +80,8 @@ namespace ams::erpt::srv {
R_ABORT_UNLESS(MountSystemSaveData());
g_sf_allocator.Attach(g_heap_handle);
for (auto i = 0; i < CategoryId_Count; i++) {
Context *ctx = new Context(static_cast<CategoryId>(i), 1);
AMS_ABORT_UNLESS(ctx != nullptr);