mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Fix regression in File::CopyDir
This apparently fixes https://bugs.dolphin-emu.org/issues/10499 somehow. The first changed line of this commit is just for performance - the second changed line is where the difference in behavior is.
This commit is contained in:
parent
d1223b6472
commit
87d982982d
@ -564,11 +564,11 @@ void CopyDir(const std::string& source_path, const std::string& dest_path, bool
|
||||
File::CreateFullPath(dest + DIR_SEP);
|
||||
CopyDir(source, dest, destructive);
|
||||
}
|
||||
else if (!Exists(dest) && !destructive)
|
||||
else if (!destructive && !Exists(dest))
|
||||
{
|
||||
Copy(source, dest);
|
||||
}
|
||||
else
|
||||
else if (destructive)
|
||||
{
|
||||
Rename(source, dest);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user