diff options
-rw-r--r-- | lib/vita/execmem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vita/execmem.c b/lib/vita/execmem.c index ba772ae..73c5fdc 100644 --- a/lib/vita/execmem.c +++ b/lib/vita/execmem.c @@ -126,14 +126,14 @@ int execmem_foreign_write_with_pc_patch(struct execmem_foreign_write *writes, struct slab_chain *slab = (struct slab_chain *)writes[i].opt; SceUID pid = slab->pid; if (pid == SHARED_PID) { - pid = sceKernelGetProcessId(); - LOG("sceKernelGetProcessId: %x", pid); + pid = ksceKernelGetProcessId(); + LOG("ksceKernelGetProcessId: %x", pid); } LOG("PID:%x, dst:%p, src:%p, len:%x", pid, writes[i].dst, writes[i].src, writes[i].len); if (pid == KERNEL_PID) { - sceKernelCpuUnrestrictedMemcpy(writes[i].dst, writes[i].src, writes[i].len); + ksceKernelCpuUnrestrictedMemcpy(writes[i].dst, writes[i].src, writes[i].len); } else { - sceKernelRxMemcpyKernelToUserForPid(pid, (uintptr_t)writes[i].dst, writes[i].src, writes[i].len); + ksceKernelRxMemcpyKernelToUserForPid(pid, (uintptr_t)writes[i].dst, writes[i].src, writes[i].len); } cache_flush(pid, (uintptr_t)writes[i].dst, writes[i].len); } |