USB: Only update when devices plugged

This commit is contained in:
Stenzek 2022-12-25 22:47:05 +10:00 committed by refractionpcsx2
parent c21df3b7f0
commit a42143690c
1 changed files with 3 additions and 0 deletions

View File

@ -490,6 +490,9 @@ bool USB::DoState(StateWrapper& sw)
void USBasync(u32 cycles)
{
if (!s_usb_device[0] && !s_usb_device[1])
return;
s_usb_remaining += cycles;
s_usb_clocks += s_usb_remaining;
if (s_qemu_ohci->eof_timer > 0)