mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user