| 1545 | namespace init { |
| 1546 | |
| 1547 | void InitializeSystemModule() { |
| 1548 | __nx_applet_type = AppletType_SystemApplet; |
| 1549 | __nx_fs_num_sessions = 3; |
| 1550 | |
| 1551 | UL_RC_ASSERT(sm::Initialize()); |
| 1552 | UL_RC_ASSERT(fsInitialize()); |
| 1553 | |
| 1554 | UL_RC_ASSERT(appletInitialize()); |
| 1555 | |
| 1556 | UL_RC_ASSERT(nsInitialize()); |
| 1557 | UL_RC_ASSERT(ldrShellInitialize()); |
| 1558 | UL_RC_ASSERT(pmshellInitialize()); |
| 1559 | UL_RC_ASSERT(setsysInitialize()); |
| 1560 | |
| 1561 | // FS and log init is intentionally done at the end, otherwise the SD doesn't seem to be always ready...? |
| 1562 | UL_RC_ASSERT(fsdevMountSdmc()); |
| 1563 | ul::InitializeLogging("uSystem"); |
| 1564 | } |
| 1565 | |
| 1566 | void FinalizeSystemModule() { |
| 1567 | setsysExit(); |
nothing calls this directly
no test coverage detected