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 committed 2025-04-21 21:57:49 +02:00
1 parent 920a44aec2
commit e468e2359a
18 files changed
+183 -61

No files matched your search

+3 -1
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;