mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
Stop autoupdater renaming file across devices
This commit is contained in:
parent
f75661bfae
commit
35c0c05707
1 changed files with 2 additions and 1 deletions
|
@ -322,7 +322,8 @@ bool update_manager::handle_rpcs3(const QByteArray& rpcs3_data, bool /*automatic
|
||||||
m_progress_dialog->setWindowTitle(tr("Updating RPCS3"));
|
m_progress_dialog->setWindowTitle(tr("Updating RPCS3"));
|
||||||
|
|
||||||
// Move the appimage/exe and replace with new appimage
|
// 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);
|
fs::file new_appimage(replace_path, fs::read + fs::write + fs::create + fs::trunc);
|
||||||
if (!new_appimage)
|
if (!new_appimage)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue