update usbds_getspeed to match pr, fix appstore install returning a bool instead of Result.

This commit is contained in:
ITotalJustice committed 2025-05-21 21:52:54 +01:00
1 parent a91550174a
commit 2e6d757852
2 files changed
+3 -5

No files matched your search

+1 -3
View File
@@ -527,9 +527,7 @@ auto InstallApp(ProgressBox* pbox, const Entry& entry) -> Result {
continue;
}
if (!unzip_to(new_entry.path, new_entry.path)) {
return false;
}
R_TRY(unzip_to(new_entry.path, new_entry.path));
}
// finally finally, remove files no longer in the manifest
+2 -2
View File
@@ -20,7 +20,7 @@ constexpr u16 DEVICE_SPEED[] = {
};
// TODO: pr this to libnx.
Result usbDsGetSpeed(u32 *out) {
Result usbDsGetSpeed(UsbDeviceSpeed *out) {
if (hosversionBefore(8,0,0)) {
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
}
@@ -247,7 +247,7 @@ Result UsbDs::IsUsbConnected(u64 timeout) {
Result UsbDs::GetSpeed(UsbDeviceSpeed* out, u16* max_packet_size) {
if (hosversionAtLeast(8,0,0)) {
R_TRY(usbDsGetSpeed((u32*)out));
R_TRY(usbDsGetSpeed(out));
} else {
// assume USB 2.0 speed (likely the case anyway).
*out = UsbDeviceSpeed_High;