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)
This commit is contained in:
Stephen Miller 2025-06-13 22:34:31 -05:00
parent 69a50fa713
commit ae638c04c3

View File

@ -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;
}