mirror of
https://github.com/Huntereb/Awoo-Installer
synced 2024-11-22 19:53:07 +00:00
We check usb state before allowing usb installs anyway
This commit is contained in:
parent
338ba6d240
commit
96257eb43a
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue