summaryrefslogtreecommitdiffstats
path: root/logic/LiteLoaderInstaller.h
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-01-22 15:20:48 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-01-22 15:20:48 +0100
commit0a592ab99bc68ad918f74206edf2a77cc257683c (patch)
tree9222c666b871f0e49bb1b6150d102bca8d2b552c /logic/LiteLoaderInstaller.h
parentd166b4807223ec7cd0df6f26e05a2f364dc6121c (diff)
downloadMultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.tar
MultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.tar.gz
MultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.tar.lz
MultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.tar.xz
MultiMC-0a592ab99bc68ad918f74206edf2a77cc257683c.zip
Work towards liteloader support. Fix creating new instance
Diffstat (limited to 'logic/LiteLoaderInstaller.h')
-rw-r--r--logic/LiteLoaderInstaller.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/logic/LiteLoaderInstaller.h b/logic/LiteLoaderInstaller.h
index d7b8ce77..48ef4baf 100644
--- a/logic/LiteLoaderInstaller.h
+++ b/logic/LiteLoaderInstaller.h
@@ -19,21 +19,25 @@
#include <memory>
class DerpVersion;
+class DerpInstance;
+class QDir;
+// TODO base class
class LiteLoaderInstaller
{
public:
- LiteLoaderInstaller(const QString &mcVersion);
+ LiteLoaderInstaller();
- bool canApply() const;
+ bool canApply(DerpInstance *instance) const;
+ bool isApplied(DerpInstance *on);
- bool apply(std::shared_ptr<DerpVersion> to);
+ bool add(DerpInstance *to);
+ bool remove(DerpInstance *from);
private:
- QString m_mcVersion;
-
- void applyLaunchwrapper(std::shared_ptr<DerpVersion> to);
- void applyLiteLoader(std::shared_ptr<DerpVersion> to);
+ virtual QString id() const { return "com.mumfrey.liteloader"; }
+ QString filename(const QString &root) const;
+ QDir patchesDir(const QString &root) const;
static QMap<QString, QString> m_launcherWrapperVersionMapping;
};