summaryrefslogtreecommitdiffstats
path: root/backend/VersionFactory.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-05 04:10:53 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-05 04:10:53 +0200
commit091b7502cfc1bc01a1abd68a0fb9a0b2693a4658 (patch)
treea793a16d3bead97f550df554b59b70be9f55ec38 /backend/VersionFactory.cpp
parent183a7351456940d01f14a49112ddeb68ffc4693a (diff)
downloadMultiMC-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.cpp6
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())