IOS: Only have one USBScanner

Some games open two USB interfaces, e.g. /dev/usb/oh0 and /dev/usb/hid.
This was causing us to run two scanning threads at once, using up more
CPU time for scanning than we need to.
This commit is contained in:
JosJuice
2025-04-06 14:18:43 +02:00
parent 920a44aec2
commit e468e2359a
18 changed files with 183 additions and 61 deletions

View File

@ -56,7 +56,8 @@ class GPFifoManager;
namespace IOS::HLE
{
class EmulationKernel;
}
class USBScanner;
} // namespace IOS::HLE
namespace HSP
{
class HSPManager;
@ -192,6 +193,7 @@ public:
SerialInterface::SerialInterfaceManager& GetSerialInterface() const;
Sram& GetSRAM() const;
SystemTimers::SystemTimersManager& GetSystemTimers() const;
IOS::HLE::USBScanner& GetUSBScanner() const;
VertexShaderManager& GetVertexShaderManager() const;
XFStateManager& GetXFStateManager() const;
VideoInterface::VideoInterfaceManager& GetVideoInterface() const;