mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Updater: Use copy instead of move
This commit is contained in:
parent
c51c044142
commit
fb268bb04f
@ -590,7 +590,7 @@ bool UpdateFiles(const std::vector<TodoList::UpdateOp>& to_update,
|
||||
std::string content_filename = HexEncode(op.new_hash.data(), op.new_hash.size());
|
||||
fprintf(log_fp, "Updating file %s from content %s...\n", op.filename.c_str(),
|
||||
content_filename.c_str());
|
||||
if (!File::Rename(temp_path + DIR_SEP + content_filename, path))
|
||||
if (!File::Copy(temp_path + DIR_SEP + content_filename, path))
|
||||
{
|
||||
fprintf(log_fp, "Could not update file %s.\n", op.filename.c_str());
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user