mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12: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
2 changed files with 3 additions and 2 deletions
|
@ -405,7 +405,7 @@ error_code sys_event_queue_tryreceive(ppu_thread& ppu, u32 equeue_id, vm::ptr<sy
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
ppu.check_state();
|
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;
|
*number = count;
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "sys_ppu_thread.h"
|
#include "sys_ppu_thread.h"
|
||||||
|
|
||||||
#include "Emu/System.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
|
// Dirty hack for sound: confirm the creation of _mxr000 event queue
|
||||||
if (*thread->ppu_tname.load() == "_cellsurMixerMain"sv)
|
if (*thread->ppu_tname.load() == "_cellsurMixerMain"sv)
|
||||||
{
|
{
|
||||||
|
ppu.check_state();
|
||||||
lv2_obj::sleep(ppu);
|
lv2_obj::sleep(ppu);
|
||||||
|
|
||||||
while (!idm::select<lv2_obj, lv2_event_queue>([](u32, lv2_event_queue& eq)
|
while (!idm::select<lv2_obj, lv2_event_queue>([](u32, lv2_event_queue& eq)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue