Skip to content

Commit

Permalink
Add version check on init
Browse files Browse the repository at this point in the history
  • Loading branch information
cathery committed Nov 10, 2019
1 parent eb0be90 commit ddee5ae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ddee5ae

Please sign in to comment.