mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 00:33:01 +00:00
sys_ppu_thread: Fix surmixer hack (#12689)
* sys_ppu_thread: Fix surmixer hack * Hotfix after #12678
This commit is contained in:
parent
194f7375da
commit
238298f695
@ -405,7 +405,7 @@ error_code sys_event_queue_tryreceive(ppu_thread& ppu, u32 equeue_id, vm::ptr<sy
|
||||
lock.unlock();
|
||||
ppu.check_state();
|
||||
|
||||
std::copy_n(event_array.get_ptr(), count, events.begin());
|
||||
std::copy_n(events.begin(), count, event_array.get_ptr());
|
||||
*number = count;
|
||||
|
||||
return CELL_OK;
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "stdafx.h"
|
||||
#include "stdafx.h"
|
||||
#include "sys_ppu_thread.h"
|
||||
|
||||
#include "Emu/System.h"
|
||||
@ -536,6 +536,7 @@ error_code sys_ppu_thread_start(ppu_thread& ppu, u32 thread_id)
|
||||
// Dirty hack for sound: confirm the creation of _mxr000 event queue
|
||||
if (*thread->ppu_tname.load() == "_cellsurMixerMain"sv)
|
||||
{
|
||||
ppu.check_state();
|
||||
lv2_obj::sleep(ppu);
|
||||
|
||||
while (!idm::select<lv2_obj, lv2_event_queue>([](u32, lv2_event_queue& eq)
|
||||
|
Loading…
x
Reference in New Issue
Block a user