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:
parent
22c5ced5dc
commit
15b7c3039a
6 changed files with 58 additions and 40 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue