_mxr000 hack moved

This commit is contained in:
Nekotekina 2017-04-13 18:37:24 +03:00
parent 402df68235
commit 4ceaab10a5
2 changed files with 17 additions and 17 deletions

View file

@ -6,6 +6,7 @@
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Cell/PPUThread.h"
#include "sys_ppu_thread.h"
#include "sys_event.h"
namespace vm { using namespace ps3; }
@ -352,6 +353,22 @@ error_code sys_ppu_thread_start(ppu_thread& ppu, u32 thread_id)
else
{
thread->notify();
// Dirty hack for sound: confirm the creation of _mxr000 event queue
if (thread->m_name == "_cellsurMixerMain")
{
lv2_obj::sleep(ppu);
while (!idm::select<lv2_obj, lv2_event_queue>([](u32, lv2_event_queue& eq)
{
return eq.name == "_mxr000\0"_u64;
}))
{
thread_ctrl::wait_for(50000);
}
ppu.test_state();
}
}
return CELL_OK;