1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-07-03 02:18:43 +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
{
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::sm::DoWithSession([]
{
R_ASSERT(timeInitialize());
R_ASSERT(hiddbgInitialize());
R_ABORT_UNLESS(timeInitialize());
R_ABORT_UNLESS(hiddbgInitialize());
if (ams::hos::GetVersion() >= ams::hos::Version_700)
R_ASSERT(hiddbgAttachHdlsWorkBuffer());
R_ASSERT(usbHsInitialize());
R_ASSERT(pscmInitialize());
R_ASSERT(fsInitialize());
R_ABORT_UNLESS(hiddbgAttachHdlsWorkBuffer());
R_ABORT_UNLESS(usbHsInitialize());
R_ABORT_UNLESS(pscmInitialize());
R_ABORT_UNLESS(fsInitialize());
});
R_ASSERT(fsdevMountSdmc());
R_ABORT_UNLESS(fsdevMountSdmc());
}
extern "C" void __appExit(void)

View File

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