mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Add exception for sys_usbd_initialize
This commit is contained in:
parent
a1e7cdf1e9
commit
79a3a7ce4c
@ -233,9 +233,7 @@ void usb_handler_thread::operator()()
|
||||
// Process fake transfers
|
||||
if (!fake_transfers.empty())
|
||||
{
|
||||
const auto usbh = g_fxo->get<named_thread<usb_handler_thread>>();
|
||||
|
||||
std::lock_guard lock(usbh->mutex);
|
||||
std::lock_guard lock(this->mutex);
|
||||
|
||||
u64 timestamp = get_system_time() - Emu.GetPauseTime();
|
||||
|
||||
@ -442,7 +440,9 @@ s32 sys_usbd_initialize(vm::ptr<u32> handle)
|
||||
|
||||
std::lock_guard lock(usbh->mutex);
|
||||
|
||||
usbh->is_init = true;
|
||||
// Must not occur (lv2 allows multiple handles, cellUsbd does not)
|
||||
verify("sys_usbd Initialized twice" HERE), !usbh->is_init.exchange(true);
|
||||
|
||||
*handle = 0x115B;
|
||||
|
||||
// TODO
|
||||
|
Loading…
Reference in New Issue
Block a user