summaryrefslogtreecommitdiffstats
path: root/logic/LiteLoaderInstaller.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/LiteLoaderInstaller.h')
-rw-r--r--logic/LiteLoaderInstaller.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/logic/LiteLoaderInstaller.h b/logic/LiteLoaderInstaller.h
index 6a5ee1f2..44b306d6 100644
--- a/logic/LiteLoaderInstaller.h
+++ b/logic/LiteLoaderInstaller.h
@@ -15,6 +15,7 @@
#pragma once
#include <QString>
+#include <QMap>
#include <memory>
class OneSixVersion;
@@ -22,7 +23,17 @@ class OneSixVersion;
class LiteLoaderInstaller
{
public:
- LiteLoaderInstaller();
+ LiteLoaderInstaller(const QString &mcVersion);
+
+ bool canApply() const;
bool apply(std::shared_ptr<OneSixVersion> to);
+
+private:
+ QString m_mcVersion;
+
+ void applyLaunchwrapper(std::shared_ptr<OneSixVersion> to);
+ void applyLiteLoader(std::shared_ptr<OneSixVersion> to);
+
+ static QMap<QString, QString> m_launcherWrapperVersionMapping;
};