diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-05 04:10:53 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-05 04:10:53 +0200 |
commit | 091b7502cfc1bc01a1abd68a0fb9a0b2693a4658 (patch) | |
tree | a793a16d3bead97f550df554b59b70be9f55ec38 /backend/VersionFactory.cpp | |
parent | 183a7351456940d01f14a49112ddeb68ffc4693a (diff) | |
download | MultiMC-091b7502cfc1bc01a1abd68a0fb9a0b2693a4658.tar MultiMC-091b7502cfc1bc01a1abd68a0fb9a0b2693a4658.tar.gz MultiMC-091b7502cfc1bc01a1abd68a0fb9a0b2693a4658.tar.lz MultiMC-091b7502cfc1bc01a1abd68a0fb9a0b2693a4658.tar.xz MultiMC-091b7502cfc1bc01a1abd68a0fb9a0b2693a4658.zip |
Add small tweak to make forge work
Diffstat (limited to 'backend/VersionFactory.cpp')
-rw-r--r-- | backend/VersionFactory.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/VersionFactory.cpp b/backend/VersionFactory.cpp index d0242f17..7bec4370 100644 --- a/backend/VersionFactory.cpp +++ b/backend/VersionFactory.cpp @@ -104,6 +104,12 @@ QSharedPointer<FullVersion> FullVersionFactory::parse4(QJsonObject root, QShared continue; QSharedPointer<Library> library(new Library(nameVal.toString())); + auto urlVal = libObj.value("url"); + if(urlVal.isString()) + { + library->setBaseUrl(urlVal.toString()); + } + // Extract excludes (if any) auto extractVal = libObj.value("extract"); if(extractVal.isObject()) |