mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
fs::rename fixed
Added overwriting policy sys_fs_rename improved
This commit is contained in:
parent
da3f3fd1fb
commit
010b75251f
5 changed files with 44 additions and 8 deletions
|
@ -376,7 +376,7 @@ void Emulator::Load(bool add_only)
|
|||
LOG_ERROR(LOADER, "Disc game %s found at invalid location /dev_hdd0/game/", m_title_id);
|
||||
|
||||
// Move and retry from correct location
|
||||
if (fs::rename(elf_dir + "/../../", hdd0_disc + elf_dir.substr(hdd0_game.size()) + "/../../"))
|
||||
if (fs::rename(elf_dir + "/../../", hdd0_disc + elf_dir.substr(hdd0_game.size()) + "/../../", false))
|
||||
{
|
||||
LOG_SUCCESS(LOADER, "Disc game %s moved to special location /dev_hdd0/disc/", m_title_id);
|
||||
return SetPath(hdd0_disc + m_path.substr(hdd0_game.size())), Load();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue