mirror of
https://github.com/cathery/sys-con.git
synced 2024-09-28 22:40:47 +00:00
use setsys instead of ams::hos::SetVersionForLibnx()
This commit is contained in:
parent
d009dd01ff
commit
6931560c8e
@ -47,12 +47,18 @@ namespace ams
|
|||||||
|
|
||||||
extern "C" void __appInit(void)
|
extern "C" void __appInit(void)
|
||||||
{
|
{
|
||||||
ams::hos::SetVersionForLibnx();
|
|
||||||
ams::sm::DoWithSession([]
|
ams::sm::DoWithSession([]
|
||||||
{
|
{
|
||||||
|
//Initialize system firmware version
|
||||||
|
R_ABORT_UNLESS(setsysInitialize());
|
||||||
|
SetSysFirmwareVersion fw;
|
||||||
|
R_ABORT_UNLESS(setsysGetFirmwareVersion(&fw));
|
||||||
|
hosversionSet(MAKEHOSVERSION(fw.major, fw.minor, fw.micro));
|
||||||
|
setsysExit();
|
||||||
|
|
||||||
R_ABORT_UNLESS(timeInitialize());
|
R_ABORT_UNLESS(timeInitialize());
|
||||||
R_ABORT_UNLESS(hiddbgInitialize());
|
R_ABORT_UNLESS(hiddbgInitialize());
|
||||||
if (ams::hos::GetVersion() >= ams::hos::Version_700)
|
if (hosversionAtLeast(7,0,0))
|
||||||
R_ABORT_UNLESS(hiddbgAttachHdlsWorkBuffer());
|
R_ABORT_UNLESS(hiddbgAttachHdlsWorkBuffer());
|
||||||
R_ABORT_UNLESS(usbHsInitialize());
|
R_ABORT_UNLESS(usbHsInitialize());
|
||||||
//R_ABORT_UNLESS(pscmInitialize());
|
//R_ABORT_UNLESS(pscmInitialize());
|
||||||
|
Loading…
Reference in New Issue
Block a user