sys_ppu_thread: Fix surmixer hack (#12689)

* sys_ppu_thread: Fix surmixer hack

* Hotfix after #12678
This commit is contained in:
Elad Ashkenazi 2022-09-21 21:10:59 +03:00 committed by GitHub
parent 194f7375da
commit 238298f695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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)