Change the OneSix library view. It now shows a list of patches.
This commit is contained in:
parent
556d8f0ec1
commit
4a9e213238
10 changed files with 183 additions and 49 deletions
|
@ -74,6 +74,7 @@ ForgeInstaller::ForgeInstaller(QString filename, QString universal_url)
|
|||
QJsonObject installObj = installVal.toObject();
|
||||
QString libraryName = installObj.value("path").toString();
|
||||
internalPath = installObj.value("filePath").toString();
|
||||
m_forgeVersionString = installObj.value("version").toString().remove("Forge").trimmed();
|
||||
|
||||
// where do we put the library? decode the mojang path
|
||||
OneSixLibrary lib(libraryName);
|
||||
|
@ -204,6 +205,11 @@ bool ForgeInstaller::add(OneSixInstance *to)
|
|||
}
|
||||
}
|
||||
|
||||
obj.insert("name", QString("Forge"));
|
||||
obj.insert("id", id());
|
||||
obj.insert("version", m_forgeVersionString);
|
||||
obj.insert("mcVersion", to->intendedVersionId());
|
||||
|
||||
QFile file(filename(to->instanceRoot()));
|
||||
if (!file.open(QFile::WriteOnly))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue