Don't hardcode stuff!!!
This commit is contained in:
parent
55e62a81b6
commit
5b54a4ca8c
3 changed files with 89 additions and 28 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue