mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 23:08:22 -04:00
ams: allow bootloader to merely approximate correct target firmware
This commit is contained in:
parent
d41de21753
commit
5708bb1557
24 changed files with 281 additions and 396 deletions
|
@ -165,6 +165,12 @@ namespace ams {
|
|||
|
||||
}
|
||||
|
||||
namespace hos {
|
||||
|
||||
void InitializeVersionInternal(bool allow_approximate);
|
||||
|
||||
}
|
||||
|
||||
namespace init {
|
||||
|
||||
void InitializeSystemModule() {
|
||||
|
@ -182,6 +188,12 @@ namespace ams {
|
|||
/* Use our manager extension to tell SM that the FS bug has been worked around. */
|
||||
R_ABORT_UNLESS(sm::manager::EndInitialDefers());
|
||||
|
||||
/* Wait for the true hos version to be available. */
|
||||
hos::InitializeVersionInternal(false);
|
||||
|
||||
/* Now that the true hos version is available, we should once more end defers (alerting sm to the available hos version). */
|
||||
R_ABORT_UNLESS(sm::manager::EndInitialDefers());
|
||||
|
||||
/* Initialize remaining services we need. */
|
||||
R_ABORT_UNLESS(ldrPmInitialize());
|
||||
spl::Initialize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue