Add cellVdec hack (stolen TLS)

This commit is contained in:
Nekotekina 2017-10-01 04:40:51 +03:00
parent 144f6809bf
commit ab4e66a0bf
3 changed files with 39 additions and 3 deletions

View file

@ -130,6 +130,12 @@ error_code _sys_interrupt_thread_disestablish(ppu_thread& ppu, u32 ih, vm::ptr<u
if (!handler)
{
if (const auto thread = idm::withdraw<ppu_thread>(ih))
{
*r13 = thread->gpr[13];
return CELL_OK;
}
return CELL_ESRCH;
}