mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-21 10:25:08 -04:00
ams: revamp assertion system
This commit is contained in:
parent
9572fb2ce3
commit
40400aee1f
168 changed files with 1014 additions and 696 deletions
|
@ -90,9 +90,9 @@ void __appInit(void) {
|
|||
|
||||
/* Initialize services we need (TODO: NCM) */
|
||||
sm::DoWithSession([&]() {
|
||||
R_ASSERT(fsInitialize());
|
||||
R_ASSERT(splInitialize());
|
||||
R_ASSERT(pmshellInitialize());
|
||||
R_ABORT_UNLESS(fsInitialize());
|
||||
R_ABORT_UNLESS(splInitialize());
|
||||
R_ABORT_UNLESS(pmshellInitialize());
|
||||
});
|
||||
|
||||
ams::CheckApiVersion();
|
||||
|
@ -147,7 +147,7 @@ int main(int argc, char **argv)
|
|||
boot::CheckAndRepairBootImages();
|
||||
|
||||
/* Tell PM to start boot2. */
|
||||
R_ASSERT(pmshellNotifyBootFinished());
|
||||
R_ABORT_UNLESS(pmshellNotifyBootFinished());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue