diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-02-01 14:52:21 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-02-01 14:52:21 +0100 |
commit | 4a9e213238234b03fdd994143726a3f75290fc26 (patch) | |
tree | af1063eeb8cc0e82c09295e52997d88d8b45a581 /logic/ForgeInstaller.cpp | |
parent | 556d8f0ec16e5030cfbfac9dc0fc2c796e829dcb (diff) | |
download | MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar.gz MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar.lz MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar.xz MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.zip |
Change the OneSix library view. It now shows a list of patches.
Diffstat (limited to 'logic/ForgeInstaller.cpp')
-rw-r--r-- | logic/ForgeInstaller.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/logic/ForgeInstaller.cpp b/logic/ForgeInstaller.cpp index 8d2445ed..c7160d6e 100644 --- a/logic/ForgeInstaller.cpp +++ b/logic/ForgeInstaller.cpp @@ -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)) { |