From 243d7dc77793386dffd0799ee2157548de176bca Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 30 Apr 2021 04:57:46 -0700 Subject: [PATCH] ams: write-protect stratosphere.romfs --- stratosphere/ams_mitm/source/amsmitm_initialization.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stratosphere/ams_mitm/source/amsmitm_initialization.cpp b/stratosphere/ams_mitm/source/amsmitm_initialization.cpp index 722c0e630..c2b1a517c 100644 --- a/stratosphere/ams_mitm/source/amsmitm_initialization.cpp +++ b/stratosphere/ams_mitm/source/amsmitm_initialization.cpp @@ -65,6 +65,7 @@ namespace ams::mitm { FsFile g_emummc_file; /* Maintain exclusive access to the fusee-secondary archive. */ + FsFile g_stratosphere_file; FsFile g_secondary_file; FsFile g_sept_payload_file; @@ -140,6 +141,7 @@ namespace ams::mitm { /* zip, and encourages good updating hygiene -- atmosphere should not be updated on SD while HOS is alive. */ { R_ABORT_UNLESS(mitm::fs::OpenSdFile(std::addressof(g_secondary_file), "/atmosphere/fusee-secondary.bin", ams::fs::OpenMode_Read)); + R_ABORT_UNLESS(mitm::fs::OpenSdFile(std::addressof(g_stratosphere_file), "/atmosphere/stratosphere.romfs", ams::fs::OpenMode_Read)); R_ABORT_UNLESS(mitm::fs::OpenSdFile(std::addressof(g_sept_payload_file), "/sept/payload.bin", ams::fs::OpenMode_Read)); } }