mirror of
https://github.com/cathery/sys-con.git
synced 2024-11-16 14:09:51 +00:00
use R_ABORT_UNLESS instead of R_ASSERT
This commit is contained in:
parent
37179d3d02
commit
9f437adca5
@ -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)
|
||||
|
@ -198,7 +198,7 @@ namespace syscon::usb
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
R_ASSERT(Enable());
|
||||
R_ABORT_UNLESS(Enable());
|
||||
}
|
||||
|
||||
void Exit()
|
||||
|
Loading…
Reference in New Issue
Block a user