Stop autoupdater renaming file across devices

This commit is contained in:
RipleyTom 2019-11-01 23:33:56 +01:00 committed by Ivan
parent f75661bfae
commit 35c0c05707
1 changed files with 2 additions and 1 deletions

View File

@ -322,7 +322,8 @@ bool update_manager::handle_rpcs3(const QByteArray& rpcs3_data, bool /*automatic
m_progress_dialog->setWindowTitle(tr("Updating RPCS3"));
// Move the appimage/exe and replace with new appimage
fs::rename(replace_path, "/tmp/rpcs3_old", true);
std::string move_dest = replace_path + "_old";
fs::rename(replace_path, move_dest, true);
fs::file new_appimage(replace_path, fs::read + fs::write + fs::create + fs::trunc);
if (!new_appimage)
{