1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-07-05 02:38:45 +00:00

use R_ABORT_UNLESS instead of R_ASSERT

This commit is contained in:
cathery 2020-03-11 02:03:50 +03:00
parent 37179d3d02
commit 9f437adca5
2 changed files with 9 additions and 9 deletions

View File

@ -41,7 +41,7 @@ extern "C"
namespace ams namespace ams
{ {
ncm::ProgramId CurrentProgramId = {0x690000000000000D}; ncm::ProgramId CurrentProgramId = {0x690000000000000D};
namespace result { bool CallFatalOnResultAssertion = false; } namespace result { bool CallFatalOnResultAssertion = true; }
} }
@ -50,16 +50,16 @@ extern "C" void __appInit(void)
ams::hos::SetVersionForLibnx(); ams::hos::SetVersionForLibnx();
ams::sm::DoWithSession([] ams::sm::DoWithSession([]
{ {
R_ASSERT(timeInitialize()); R_ABORT_UNLESS(timeInitialize());
R_ASSERT(hiddbgInitialize()); R_ABORT_UNLESS(hiddbgInitialize());
if (ams::hos::GetVersion() >= ams::hos::Version_700) if (ams::hos::GetVersion() >= ams::hos::Version_700)
R_ASSERT(hiddbgAttachHdlsWorkBuffer()); R_ABORT_UNLESS(hiddbgAttachHdlsWorkBuffer());
R_ASSERT(usbHsInitialize()); R_ABORT_UNLESS(usbHsInitialize());
R_ASSERT(pscmInitialize()); R_ABORT_UNLESS(pscmInitialize());
R_ASSERT(fsInitialize()); R_ABORT_UNLESS(fsInitialize());
}); });
R_ASSERT(fsdevMountSdmc()); R_ABORT_UNLESS(fsdevMountSdmc());
} }
extern "C" void __appExit(void) extern "C" void __appExit(void)

View File

@ -198,7 +198,7 @@ namespace syscon::usb
void Initialize() void Initialize()
{ {
R_ASSERT(Enable()); R_ABORT_UNLESS(Enable());
} }
void Exit() void Exit()