From ae638c04c3f894a861a84ecdfb9618d3cefe8a09 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Fri, 13 Jun 2025 22:34:31 -0500 Subject: [PATCH] Fix rename We shouldn't be leaving a copy of the original filename laying around. This fixes one of a few broken savedata checks in DRAGON BALL XENOVERSE (CUSA01341) --- src/core/libraries/kernel/file_system.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/libraries/kernel/file_system.cpp b/src/core/libraries/kernel/file_system.cpp index fecc606fd..2e9e2ee07 100644 --- a/src/core/libraries/kernel/file_system.cpp +++ b/src/core/libraries/kernel/file_system.cpp @@ -751,6 +751,7 @@ s32 PS4_SYSV_ABI posix_rename(const char* from, const char* to) { return -1; } std::filesystem::copy(src_path, dst_path, std::filesystem::copy_options::overwrite_existing); + std::filesystem::remove(src_path); return ORBIS_OK; }