aboutsummaryrefslogtreecommitdiff
path: root/launcher/BaseInstance.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-07-11 09:01:07 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-09-20 15:59:43 +0200
commit09e85e948cdb361c306a1cccbc3557a464366a21 (patch)
tree9a33804b4370079902d7715ff5bc0c1e539b46e0 /launcher/BaseInstance.h
parent9ec1c00887579e97c7b7a190756f6ddae583563f (diff)
downloadPrismLauncher-09e85e948cdb361c306a1cccbc3557a464366a21.tar.gz
PrismLauncher-09e85e948cdb361c306a1cccbc3557a464366a21.tar.bz2
PrismLauncher-09e85e948cdb361c306a1cccbc3557a464366a21.zip
refactor: introduce RuntimeContext
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/BaseInstance.h')
-rw-r--r--launcher/BaseInstance.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/launcher/BaseInstance.h b/launcher/BaseInstance.h
index 3af104e9..b86401d6 100644
--- a/launcher/BaseInstance.h
+++ b/launcher/BaseInstance.h
@@ -54,6 +54,7 @@
#include "net/Mode.h"
#include "minecraft/launch/MinecraftServerTarget.h"
+#include "RuntimeContext.h"
class QDir;
class Task;
@@ -219,6 +220,12 @@ public:
virtual QString typeName() const = 0;
+ void updateRuntimeContext();
+ RuntimeContext runtimeContext() const
+ {
+ return m_runtimeContext;
+ }
+
bool hasVersionBroken() const
{
return m_hasBrokenVersion;
@@ -304,6 +311,7 @@ protected: /* data */
bool m_isRunning = false;
shared_qobject_ptr<LaunchTask> m_launchProcess;
QDateTime m_timeStarted;
+ RuntimeContext m_runtimeContext;
private: /* data */
Status m_status = Status::Present;