mirror of
https://github.com/cathery/sys-con.git
synced 2025-03-29 22:20:09 +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
|
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)
|
||||||
|
@ -198,7 +198,7 @@ namespace syscon::usb
|
|||||||
|
|
||||||
void Initialize()
|
void Initialize()
|
||||||
{
|
{
|
||||||
R_ASSERT(Enable());
|
R_ABORT_UNLESS(Enable());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Exit()
|
void Exit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user