From 5dd48e89f5a7facf8355641d0caf8deaec2a03ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 10 Jul 2015 00:06:05 +0200 Subject: GH-1034 do jar modding separate from update --- logic/BaseInstance.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'logic/BaseInstance.h') diff --git a/logic/BaseInstance.h b/logic/BaseInstance.h index 497431d0..720385c8 100644 --- a/logic/BaseInstance.h +++ b/logic/BaseInstance.h @@ -135,13 +135,21 @@ public: virtual SettingsObjectPtr settings() const; /// returns a valid update task - virtual std::shared_ptr doUpdate() = 0; + virtual std::shared_ptr createUpdateTask() = 0; - /// returns a valid process, ready for launch with the given account. - virtual std::shared_ptr prepareForLaunch(AuthSessionPtr account) = 0; + /// returns a valid launcher (task container) + virtual std::shared_ptr createLaunchTask(AuthSessionPtr account) = 0; - /// do any necessary cleanups after the instance finishes. also runs before - /// 'prepareForLaunch' + /*! + * Returns a task that should be done right before launch + * This task should do any extra preparations needed + */ + virtual std::shared_ptr createJarModdingTask() = 0; + + /*! + * does any necessary cleanups after the instance finishes. also runs before\ + * TODO: turn into a task that can run asynchronously + */ virtual void cleanupAfterRun() = 0; virtual QString getStatusbarDescription() = 0; -- cgit v1.2.3