From f2c553be1a13b40bc667bfc88d82b5ecd06c40be Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 14 Nov 2020 10:34:13 -0800 Subject: [PATCH] bpc.mitm: don't mitm bpc on mariko --- stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_module.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_module.cpp b/stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_module.cpp index 1ea2b7eb9..75f7afc0c 100644 --- a/stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_module.cpp +++ b/stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_module.cpp @@ -37,6 +37,11 @@ namespace ams::mitm::bpc { /* Wait until initialization is complete. */ mitm::WaitInitialized(); + /* On Mariko, we can't reboot to payload/do exosphere-shutdown...so there is no point in bpc.mitm. */ + if (spl::GetSocType() == spl::SocType_Mariko) { + return; + } + /* Create bpc mitm. */ const sm::ServiceName service_name = (hos::GetVersion() >= hos::Version_2_0_0) ? MitmServiceName : DeprecatedMitmServiceName; R_ABORT_UNLESS((g_server_manager.RegisterMitmServer(service_name)));