``Working'' forge unpackers. Needs a lot of hardening but good for alpha.
This commit is contained in:
parent
604162acdf
commit
8b0f8b9e59
21 changed files with 413 additions and 36 deletions
|
@ -71,11 +71,21 @@ QSharedPointer<OneSixVersion> fromJsonV4(QJsonObject root,
|
|||
{
|
||||
library->setBaseUrl(urlVal.toString());
|
||||
}
|
||||
auto urlAbsVal = libObj.value("MMC-absulute_url");
|
||||
auto hintVal = libObj.value("MMC-hint");
|
||||
if (hintVal.isString())
|
||||
{
|
||||
library->setHint(hintVal.toString());
|
||||
}
|
||||
auto urlAbsVal = libObj.value("MMC-absoluteUrl");
|
||||
auto urlAbsuVal = libObj.value("MMC-absulute_url"); // compatibility
|
||||
if (urlAbsVal.isString())
|
||||
{
|
||||
library->setAbsoluteUrl(urlAbsVal.toString());
|
||||
}
|
||||
else if(urlAbsuVal.isString())
|
||||
{
|
||||
library->setAbsoluteUrl(urlAbsuVal.toString());
|
||||
}
|
||||
// Extract excludes (if any)
|
||||
auto extractVal = libObj.value("extract");
|
||||
if (extractVal.isObject())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue