From a6402bd5d5377143aebb16d127863a349e411d74 Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Tue, 21 Apr 2026 21:28:18 +0200 Subject: [PATCH] update startPtr AFTER PrepareMtcMemoryRegion --- .../Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp index 3ae5c067..04fed544 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv_mariko.cpp @@ -747,9 +747,9 @@ namespace ams::ldr::hoc::pcv::mariko { MarikoMtcTable *table = reinterpret_cast(startPtr + mtcOffset); R_UNLESS(R_SUCCEEDED(MtcValidateAllTables(table, EmcListDefault, EmcListSizeDefault)), ldr::ResultInvalidMtcTable()); + PrepareMtcMemoryRegion(startPtr, table); table = reinterpret_cast(startPtr); - PrepareMtcMemoryRegion(startPtr, table); if (R_FAILED(MtcValidateAllTables(table, EmcListDefault, EmcListSizeDefault))) { panic::SmcError(panic::Emc); }