summaryrefslogtreecommitdiffstats
path: root/logic/BaseInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-07-10 00:06:05 +0200
committerPetr Mrázek <peterix@gmail.com>2015-07-10 00:06:05 +0200
commit5dd48e89f5a7facf8355641d0caf8deaec2a03ec (patch)
treeb23f1d3bdb09afe8f642e07df30f5a68f2b42a5e /logic/BaseInstance.h
parent5133b0f34f1e6fc046787e7369b403a381a2f60c (diff)
downloadMultiMC-5dd48e89f5a7facf8355641d0caf8deaec2a03ec.tar
MultiMC-5dd48e89f5a7facf8355641d0caf8deaec2a03ec.tar.gz
MultiMC-5dd48e89f5a7facf8355641d0caf8deaec2a03ec.tar.lz
MultiMC-5dd48e89f5a7facf8355641d0caf8deaec2a03ec.tar.xz
MultiMC-5dd48e89f5a7facf8355641d0caf8deaec2a03ec.zip
GH-1034 do jar modding separate from update
Diffstat (limited to 'logic/BaseInstance.h')
-rw-r--r--logic/BaseInstance.h18
1 files changed, 13 insertions, 5 deletions
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<Task> doUpdate() = 0;
+ virtual std::shared_ptr<Task> createUpdateTask() = 0;
- /// returns a valid process, ready for launch with the given account.
- virtual std::shared_ptr<BaseLauncher> prepareForLaunch(AuthSessionPtr account) = 0;
+ /// returns a valid launcher (task container)
+ virtual std::shared_ptr<BaseLauncher> 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<Task> 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;