mirror of
https://github.com/cathery/sys-con.git
synced 2025-01-12 12:37:23 +00:00
Add version check on init
This commit is contained in:
parent
eb0be90be0
commit
ddee5ae15b
@ -49,9 +49,12 @@ extern "C"
|
|||||||
if (R_FAILED(rc))
|
if (R_FAILED(rc))
|
||||||
fatalThrow(rc);
|
fatalThrow(rc);
|
||||||
|
|
||||||
|
if (hosversionAtLeast(7, 0, 0))
|
||||||
|
{
|
||||||
rc = hiddbgAttachHdlsWorkBuffer();
|
rc = hiddbgAttachHdlsWorkBuffer();
|
||||||
if (R_FAILED(rc))
|
if (R_FAILED(rc))
|
||||||
fatalThrow(rc);
|
fatalThrow(rc);
|
||||||
|
}
|
||||||
|
|
||||||
rc = usbHsInitialize();
|
rc = usbHsInitialize();
|
||||||
if (R_FAILED(rc))
|
if (R_FAILED(rc))
|
||||||
|
Loading…
Reference in New Issue
Block a user