diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2013-12-28 23:34:18 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2013-12-28 23:34:18 +0100 |
commit | 5b54a4ca8c4849a4476bb9a5e1c2414463949621 (patch) | |
tree | 80705f47867cad113f0b3d83442ab1434b6ea091 /logic/LiteLoaderInstaller.h | |
parent | 55e62a81b69663041cb2402f779d0d957c499cb1 (diff) | |
download | MultiMC-5b54a4ca8c4849a4476bb9a5e1c2414463949621.tar MultiMC-5b54a4ca8c4849a4476bb9a5e1c2414463949621.tar.gz MultiMC-5b54a4ca8c4849a4476bb9a5e1c2414463949621.tar.lz MultiMC-5b54a4ca8c4849a4476bb9a5e1c2414463949621.tar.xz MultiMC-5b54a4ca8c4849a4476bb9a5e1c2414463949621.zip |
Don't hardcode stuff!!!
Diffstat (limited to 'logic/LiteLoaderInstaller.h')
-rw-r--r-- | logic/LiteLoaderInstaller.h | 13 |
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; }; |