GH-1060 update tweaks

* download to multimc folder hierarchy
* use rename, not copy
* keep backup after update
* clean previous backup before update
* it's not 'copy', it's 'replace'
This commit is contained in:
Petr Mrázek 2015-06-09 23:23:46 +02:00
parent 22c5ced5dc
commit 15b7c3039a
6 changed files with 58 additions and 40 deletions

View file

@ -988,7 +988,8 @@ void MainWindow::downloadUpdates(GoUpdate::Status status)
ProgressDialog updateDlg(this);
status.rootPath = MMC->rootPath;
GoUpdate::DownloadTask updateTask(status, &updateDlg);
auto dlPath = PathCombine(MMC->root(), "update", "XXXXXX");
GoUpdate::DownloadTask updateTask(status, dlPath, &updateDlg);
// If the task succeeds, install the updates.
if (updateDlg.exec(&updateTask))
{