s32 sys_ppu_thread_rename(u64 thread_id, vm::ptr<const char> name) { sys_ppu_thread.Log("sys_ppu_thread_rename(thread_id=%d, name_addr=0x%x('%s'))", thread_id, name.addr(), name.get_ptr()); CPUThread* thr = Emu.GetCPU().GetThread(thread_id); if (!thr) { return CELL_ESRCH; } thr->SetThreadName(name.get_ptr()); return CELL_OK; }