Got liteloader working. Patching more or less works

This commit is contained in:
Jan Dalheimer
2014-01-22 22:15:50 +01:00
parent 0a592ab99b
commit c39d26f445
5 changed files with 221 additions and 67 deletions

View File

@@ -75,7 +75,7 @@ bool LiteLoaderInstaller::add(DerpInstance *to)
DerpLibrary launchwrapperLib("net.minecraft:launchwrapper:" + m_launcherWrapperVersionMapping[to->intendedVersionId()]);
launchwrapperLib.finalize();
QJsonObject lwLibObj = launchwrapperLib.toJson();
lwLibObj.insert("insert", QString("beginning"));
lwLibObj.insert("insert", QString("prepend"));
libraries.append(lwLibObj);
}
@@ -85,7 +85,7 @@ bool LiteLoaderInstaller::add(DerpInstance *to)
liteloaderLib.setBaseUrl("http://dl.liteloader.com/versions/");
liteloaderLib.finalize();
QJsonObject llLibObj = liteloaderLib.toJson();
llLibObj.insert("insert", QString("beginning"));
llLibObj.insert("insert", QString("prepend"));
libraries.append(llLibObj);
}