mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-19 09:25:08 -04:00
sm: change InstallMitM to wait for registration instead of 0xE15
This commit is contained in:
parent
b6684ff845
commit
83025080c8
5 changed files with 25 additions and 15 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue