mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-24 19:14:40 +00:00
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:
parent
69a50fa713
commit
ae638c04c3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user