1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-09-28 14:40:46 +00:00

use setsys instead of ams::hos::SetVersionForLibnx()

This commit is contained in:
cathery 2020-04-15 13:53:59 +03:00
parent d009dd01ff
commit 6931560c8e

View File

@ -47,12 +47,18 @@ namespace ams
extern "C" void __appInit(void)
{
ams::hos::SetVersionForLibnx();
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(hiddbgInitialize());
if (ams::hos::GetVersion() >= ams::hos::Version_700)
if (hosversionAtLeast(7,0,0))
R_ABORT_UNLESS(hiddbgAttachHdlsWorkBuffer());
R_ABORT_UNLESS(usbHsInitialize());
//R_ABORT_UNLESS(pscmInitialize());