summaryrefslogtreecommitdiffstats
path: root/logic/liteloader/LiteLoaderInstaller.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-02-26 02:04:21 +0100
committerPetr Mrázek <peterix@gmail.com>2016-02-26 02:04:21 +0100
commit71e4b147ec3b8c5f3e2a004920ffbc0a3b6e18c8 (patch)
tree2b96e6bc1c531c094a1a9d41e171cbed9e97210e /logic/liteloader/LiteLoaderInstaller.cpp
parentf6b2ccb110f0bb4071044456a93c6edc1de50922 (diff)
downloadMultiMC-71e4b147ec3b8c5f3e2a004920ffbc0a3b6e18c8.tar
MultiMC-71e4b147ec3b8c5f3e2a004920ffbc0a3b6e18c8.tar.gz
MultiMC-71e4b147ec3b8c5f3e2a004920ffbc0a3b6e18c8.tar.lz
MultiMC-71e4b147ec3b8c5f3e2a004920ffbc0a3b6e18c8.tar.xz
MultiMC-71e4b147ec3b8c5f3e2a004920ffbc0a3b6e18c8.zip
NOISSUE remove OneSixLibrary
Diffstat (limited to 'logic/liteloader/LiteLoaderInstaller.cpp')
-rw-r--r--logic/liteloader/LiteLoaderInstaller.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/logic/liteloader/LiteLoaderInstaller.cpp b/logic/liteloader/LiteLoaderInstaller.cpp
index 28be614a..555d16c1 100644
--- a/logic/liteloader/LiteLoaderInstaller.cpp
+++ b/logic/liteloader/LiteLoaderInstaller.cpp
@@ -21,7 +21,7 @@
#include <QDebug>
#include "minecraft/MinecraftProfile.h"
-#include "minecraft/OneSixLibrary.h"
+#include "minecraft/RawLibrary.h"
#include "minecraft/OneSixInstance.h"
#include "liteloader/LiteLoaderVersionList.h"
#include "Exception.h"
@@ -51,19 +51,14 @@ bool LiteLoaderInstaller::add(OneSixInstance *to)
for (auto rawLibrary : m_version->libraries)
{
- OneSixLibrary lib(rawLibrary);
- libraries.append(lib.toJson());
+ libraries.append(rawLibrary->toJson());
}
// liteloader
{
- OneSixLibrary liteloaderLib("com.mumfrey:liteloader:" + m_version->version);
- liteloaderLib.setAbsoluteUrl(
- QString("http://dl.liteloader.com/versions/com/mumfrey/liteloader/%1/%2")
- .arg(m_version->mcVersion, m_version->file));
+ RawLibrary liteloaderLib("com.mumfrey:liteloader:" + m_version->version);
+ liteloaderLib.setAbsoluteUrl(QString("http://dl.liteloader.com/versions/com/mumfrey/liteloader/%1/%2").arg(m_version->mcVersion, m_version->file));
QJsonObject llLibObj = liteloaderLib.toJson();
- llLibObj.insert("insert", QString("prepend"));
- llLibObj.insert("MMC-depend", QString("hard"));
libraries.append(llLibObj);
}