From 71e4b147ec3b8c5f3e2a004920ffbc0a3b6e18c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 26 Feb 2016 02:04:21 +0100 Subject: NOISSUE remove OneSixLibrary --- logic/liteloader/LiteLoaderInstaller.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'logic/liteloader') 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 #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); } -- cgit v1.2.3