sm: change InstallMitM to wait for registration instead of 0xE15

This commit is contained in:
Michael Scire 2019-01-20 17:00:35 -08:00
parent b6684ff845
commit 83025080c8
5 changed files with 25 additions and 15 deletions

View file

@ -123,8 +123,7 @@ static void MountSdCard() {
fsdevMountSdmc();
}
void EmbeddedBoot2::Main() {
/* Wait until fs.mitm has installed itself. We want this to happen as early as possible. */
static void WaitForFsMitm() {
bool fs_mitm_installed = false;
Result rc = smManagerAmsInitialize();
@ -138,6 +137,11 @@ void EmbeddedBoot2::Main() {
svcSleepThread(1000ull);
}
smManagerAmsExit();
}
void EmbeddedBoot2::Main() {
/* Wait until fs.mitm has installed itself. We want this to happen as early as possible. */
WaitForFsMitm();
/* psc, bus, pcv is the minimal set of required titles to get SD card. */
/* bus depends on pcie, and pcv depends on settings. */