aboutsummaryrefslogtreecommitdiff
path: root/api/logic/BaseInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@users.noreply.github.com>2021-05-24 02:41:54 +0200
committerGitHub <noreply@github.com>2021-05-24 02:41:54 +0200
commit60b686f01458fc1f31109a0be71d790b8f7ec22b (patch)
treeb6a7d10a24517a5971a712e949c7a9c340f56e0c /api/logic/BaseInstance.h
parent3a8068e75f4f818417f17c524af928ba295e775a (diff)
parent52c1150522139f042903321387c6582a99e8ad9a (diff)
downloadPrismLauncher-60b686f01458fc1f31109a0be71d790b8f7ec22b.tar.gz
PrismLauncher-60b686f01458fc1f31109a0be71d790b8f7ec22b.tar.bz2
PrismLauncher-60b686f01458fc1f31109a0be71d790b8f7ec22b.zip
Merge pull request #3804 from Janrupf/feature/default-server
Add ability to select a server to join in the instance settings
Diffstat (limited to 'api/logic/BaseInstance.h')
-rw-r--r--api/logic/BaseInstance.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/api/logic/BaseInstance.h b/api/logic/BaseInstance.h
index bbeabb41..64de4bb3 100644
--- a/api/logic/BaseInstance.h
+++ b/api/logic/BaseInstance.h
@@ -34,6 +34,8 @@
#include "multimc_logic_export.h"
+#include "minecraft/launch/MinecraftServerTarget.h"
+
class QDir;
class Task;
class LaunchTask;
@@ -145,7 +147,8 @@ public:
virtual shared_qobject_ptr<Task> createUpdateTask(Net::Mode mode) = 0;
/// returns a valid launcher (task container)
- virtual shared_qobject_ptr<LaunchTask> createLaunchTask(AuthSessionPtr account) = 0;
+ virtual shared_qobject_ptr<LaunchTask> createLaunchTask(
+ AuthSessionPtr account, MinecraftServerTargetPtr serverToJoin) = 0;
/// returns the current launch task (if any)
shared_qobject_ptr<LaunchTask> getLaunchTask();
@@ -221,9 +224,9 @@ public:
bool reloadSettings();
/**
- * 'print' a verbose desription of the instance into a QStringList
+ * 'print' a verbose description of the instance into a QStringList
*/
- virtual QStringList verboseDescription(AuthSessionPtr session) = 0;
+ virtual QStringList verboseDescription(AuthSessionPtr session, MinecraftServerTargetPtr serverToJoin) = 0;
Status currentStatus() const;