We check usb state before allowing usb installs anyway

This commit is contained in:
Huntereb 2019-12-09 19:44:34 -05:00
parent 338ba6d240
commit 96257eb43a

View file

@ -33,13 +33,6 @@ namespace usbInstStuff {
std::vector<std::string> OnSelected() {
Result rc = 0;
while(true) {
rc = usbDsWaitReady(1000000);
if (R_SUCCEEDED(rc)) break;
else if ((rc & 0x3FFFFF) != 0xEA01)
return {};
}
TUSHeader header;
while(true) {
if (tin::util::USBRead(&header, sizeof(TUSHeader)) != 0) break;