summaryrefslogtreecommitdiffstats
path: root/logic/LegacyUpdate.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-04-19 21:24:11 +0200
committerPetr Mrázek <peterix@gmail.com>2014-04-19 21:24:11 +0200
commit565dab24b54b154df046644e00caa58a663a6ba4 (patch)
treee5a07115b615042e495adf78da4b51cedd494f43 /logic/LegacyUpdate.h
parentbf1632e4ed09f3fdc140b25a67b82f2bedb66f76 (diff)
downloadMultiMC-565dab24b54b154df046644e00caa58a663a6ba4.tar
MultiMC-565dab24b54b154df046644e00caa58a663a6ba4.tar.gz
MultiMC-565dab24b54b154df046644e00caa58a663a6ba4.tar.lz
MultiMC-565dab24b54b154df046644e00caa58a663a6ba4.tar.xz
MultiMC-565dab24b54b154df046644e00caa58a663a6ba4.zip
Download and cache FML libs for legacy minecraft versions.
* minor fix for version filtering (1.5 no longer shows forge for 1.5.1 and 1.5.2) * FML libs are downloaded to mods/minecraftforge/libs and cached * FML libs are copied to instances which contain FML or forge
Diffstat (limited to 'logic/LegacyUpdate.h')
-rw-r--r--logic/LegacyUpdate.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/logic/LegacyUpdate.h b/logic/LegacyUpdate.h
index 613eb1f9..5b073cb7 100644
--- a/logic/LegacyUpdate.h
+++ b/logic/LegacyUpdate.h
@@ -27,6 +27,13 @@ class BaseInstance;
class QuaZip;
class Mod;
+struct FMLlib
+{
+ QString name;
+ QString checksum;
+ bool ours;
+};
+
class LegacyUpdate : public Task
{
Q_OBJECT
@@ -44,6 +51,10 @@ slots:
void jarFinished();
void jarFailed();
+ void fmllibsStart();
+ void fmllibsFinished();
+ void fmllibsFailed();
+
void extractLwjgl();
void ModTheJar();
@@ -72,4 +83,6 @@ private:
private:
NetJobPtr legacyDownloadJob;
BaseInstance *m_inst = nullptr;
+ QList<FMLlib> fmlLibsToProcess;
+ QMap<QString, QList<FMLlib>> fmlLibsMapping;
};