From fc457760a85b29bf7ea6e3c39c980f170fa61c62 Mon Sep 17 00:00:00 2001 From: ps54all Date: Wed, 7 Oct 2026 16:00:55 +0200 Subject: [PATCH] feat(libkernel): export the POSIX rename Titles that ship their own libc in sce_module import rename from libkernel (NID NN01qLRhiqU), where it was missing, so PPSA12544 failed to start. It checks both paths like unlink and maps sceKernelRename's result to errno. Co-Authored-By: Claude Opus 5.5 --- core/libs/prx/libkernel/File/src/Stdio.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/libs/prx/libkernel/File/src/Stdio.cpp b/core/libs/prx/libkernel/File/src/Stdio.cpp index 109f729e7..899183c94 100644 --- a/core/libs/prx/libkernel/File/src/Stdio.cpp +++ b/core/libs/prx/libkernel/File/src/Stdio.cpp @@ -643,6 +643,12 @@ int APS5_VABI sceKernelRename(const char* from, const char* to) { return 0; } +int APS5_VABI rename_nid_postfix(const char* from, const char* to) { + if (const int error = PathError(from)) return PosixFailure(error); + if (const int error = PathError(to)) return PosixFailure(error); + return PosixResult(sceKernelRename(from, to)); +} + int APS5_VABI sceKernelRmdir(const char* path) { if (path == nullptr) throw std::invalid_argument("sceKernelRmdir: path is null"); const auto native = ResolvePath_nid_no_patch(path);