1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-05 08:26:32 +00:00

Add version check on init

This commit is contained in:
cathery 2019-11-11 01:54:46 +03:00
parent eb0be90be0
commit ddee5ae15b

View File

@ -49,9 +49,12 @@ extern "C"
if (R_FAILED(rc))
fatalThrow(rc);
rc = hiddbgAttachHdlsWorkBuffer();
if (R_FAILED(rc))
fatalThrow(rc);
if (hosversionAtLeast(7, 0, 0))
{
rc = hiddbgAttachHdlsWorkBuffer();
if (R_FAILED(rc))
fatalThrow(rc);
}
rc = usbHsInitialize();
if (R_FAILED(rc))