From 15b7c3039a41eab75f5dcabab53de82372d2ecfa Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Tue, 9 Jun 2015 23:23:46 +0200 Subject: 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' --- logic/updater/DownloadTask.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'logic/updater/DownloadTask.h') diff --git a/logic/updater/DownloadTask.h b/logic/updater/DownloadTask.h index 3bc504fc..d77c2b2c 100644 --- a/logic/updater/DownloadTask.h +++ b/logic/updater/DownloadTask.h @@ -30,7 +30,12 @@ class DownloadTask : public Task Q_OBJECT public: - explicit DownloadTask(Status status, QObject* parent = 0); + /** + * Create a download task + * + * target is a template - XXXXXX at the end will be replaced with a random generated string, ensuring uniqueness + */ + explicit DownloadTask(Status status, QString target, QObject* parent = 0); /// Get the directory that will contain the update files. QString updateFilesDir(); -- cgit