erpt: actually support non-sequential ids, nintendo why

This commit is contained in:
Michael Scire 2024-03-28 04:36:14 -07:00 committed by SciresM
parent b081762657
commit 551821e7e2
7 changed files with 91 additions and 36 deletions

View file

@ -105,8 +105,8 @@ namespace ams::erpt::srv {
g_sf_allocator.Attach(g_heap_handle);
for (auto i = 0; i < CategoryId_Count; i++) {
Context *ctx = new Context(static_cast<CategoryId>(i));
for (const auto category_id : CategoryIndexToCategoryIdMap) {
Context *ctx = new Context(category_id);
AMS_ABORT_UNLESS(ctx != nullptr);
}