NOISSUE make new Mojang version format pass through MultiMC structures
Not yet used effectively, but it is read and written properly
This commit is contained in:
parent
3d8728f52f
commit
d4eacb56b3
21 changed files with 493 additions and 155 deletions
|
@ -21,7 +21,7 @@
|
|||
#include <QDebug>
|
||||
|
||||
#include "minecraft/MinecraftProfile.h"
|
||||
#include "minecraft/RawLibrary.h"
|
||||
#include "minecraft/Library.h"
|
||||
#include "minecraft/onesix/OneSixInstance.h"
|
||||
#include <minecraft/onesix/OneSixVersionFormat.h>
|
||||
#include "minecraft/liteloader/LiteLoaderVersionList.h"
|
||||
|
@ -50,14 +50,14 @@ bool LiteLoaderInstaller::add(OneSixInstance *to)
|
|||
|
||||
QJsonArray libraries;
|
||||
|
||||
for (auto rawLibrary : m_version->libraries)
|
||||
for (auto Library : m_version->libraries)
|
||||
{
|
||||
libraries.append(OneSixVersionFormat::libraryToJson(rawLibrary.get()));
|
||||
libraries.append(OneSixVersionFormat::libraryToJson(Library.get()));
|
||||
}
|
||||
|
||||
// liteloader
|
||||
{
|
||||
RawLibrary liteloaderLib("com.mumfrey:liteloader:" + m_version->version);
|
||||
Library 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 = OneSixVersionFormat::libraryToJson(&liteloaderLib);
|
||||
libraries.append(llLibObj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue