fix ncz install due to write offset being applied twice, fix zlt, bump version 0.11.2 -> 0.11.3

bug was introduced in 6b56b7f.
This commit is contained in:
ITotalJustice
2025-05-29 01:45:15 +01:00
parent 391234ea7b
commit 17b341d83a
3 changed files with 3 additions and 3 deletions

View File

@@ -293,7 +293,7 @@ Result UsbDs::WaitTransferCompletion(UsbSessionEndpoint ep, u64 timeout) {
}
Result UsbDs::TransferAsync(UsbSessionEndpoint ep, void *buffer, u32 remaining, u32 size, u32 *out_urb_id) {
if (remaining == size && size == m_max_packet_size) {
if (remaining == size && !(size % (u32)m_max_packet_size)) {
log_write("[USBDS] SetZlt(true)\n");
R_TRY(usbDsEndpoint_SetZlt(m_endpoints[ep], true));
} else {