ams: revamp assertion system
This commit is contained in:
1 parent
9572fb2ce3
commit
40400aee1f
168 files changed
+1014
-696
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user