2022-05-27 02:48:54 +05:30
|
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
/*
|
|
|
|
* PolyMC - Minecraft Launcher
|
|
|
|
* Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, version 3.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following copyright and
|
|
|
|
* permission notice:
|
|
|
|
*
|
|
|
|
* Copyright 2013-2021 MultiMC Contributors
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2016-02-28 02:32:56 +05:30
|
|
|
#include "OneSixVersionFormat.h"
|
|
|
|
#include <Json.h>
|
2022-04-06 11:52:24 +05:30
|
|
|
#include "minecraft/Agent.h"
|
2016-02-28 02:32:56 +05:30
|
|
|
#include "minecraft/ParseUtils.h"
|
2016-03-07 06:31:28 +05:30
|
|
|
#include <minecraft/MojangVersionFormat.h>
|
2016-02-28 02:32:56 +05:30
|
|
|
|
|
|
|
using namespace Json;
|
|
|
|
|
|
|
|
static void readString(const QJsonObject &root, const QString &key, QString &variable)
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
if (root.contains(key))
|
|
|
|
{
|
|
|
|
variable = requireString(root.value(key));
|
|
|
|
}
|
2016-02-28 02:32:56 +05:30
|
|
|
}
|
|
|
|
|
2021-04-01 07:20:28 +05:30
|
|
|
LibraryPtr OneSixVersionFormat::libraryFromJson(ProblemContainer & problems, const QJsonObject &libObj, const QString &filename)
|
2016-02-28 23:31:54 +05:30
|
|
|
{
|
2021-04-01 07:20:28 +05:30
|
|
|
LibraryPtr out = MojangVersionFormat::libraryFromJson(problems, libObj, filename);
|
2021-10-24 15:55:44 +05:30
|
|
|
readString(libObj, "MMC-hint", out->m_hint);
|
|
|
|
readString(libObj, "MMC-absulute_url", out->m_absoluteURL);
|
|
|
|
readString(libObj, "MMC-absoluteUrl", out->m_absoluteURL);
|
|
|
|
readString(libObj, "MMC-filename", out->m_filename);
|
|
|
|
readString(libObj, "MMC-displayname", out->m_displayname);
|
2018-07-15 18:21:05 +05:30
|
|
|
return out;
|
2016-02-28 23:31:54 +05:30
|
|
|
}
|
|
|
|
|
2016-03-07 06:31:28 +05:30
|
|
|
QJsonObject OneSixVersionFormat::libraryToJson(Library *library)
|
2016-02-28 23:31:54 +05:30
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
QJsonObject libRoot = MojangVersionFormat::libraryToJson(library);
|
|
|
|
if (library->m_absoluteURL.size())
|
2021-10-24 15:55:44 +05:30
|
|
|
libRoot.insert("MMC-absoluteUrl", library->m_absoluteURL);
|
2018-07-15 18:21:05 +05:30
|
|
|
if (library->m_hint.size())
|
2021-10-24 15:55:44 +05:30
|
|
|
libRoot.insert("MMC-hint", library->m_hint);
|
2018-07-15 18:21:05 +05:30
|
|
|
if (library->m_filename.size())
|
2021-10-24 15:55:44 +05:30
|
|
|
libRoot.insert("MMC-filename", library->m_filename);
|
2018-07-15 18:21:05 +05:30
|
|
|
if (library->m_displayname.size())
|
2021-10-24 15:55:44 +05:30
|
|
|
libRoot.insert("MMC-displayname", library->m_displayname);
|
2018-07-15 18:21:05 +05:30
|
|
|
return libRoot;
|
2016-02-28 23:31:54 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
VersionFilePtr OneSixVersionFormat::versionFileFromJson(const QJsonDocument &doc, const QString &filename, const bool requireOrder)
|
2016-02-28 02:32:56 +05:30
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
VersionFilePtr out(new VersionFile());
|
|
|
|
if (doc.isEmpty() || doc.isNull())
|
|
|
|
{
|
|
|
|
throw JSONValidationError(filename + " is empty or null");
|
|
|
|
}
|
|
|
|
if (!doc.isObject())
|
|
|
|
{
|
|
|
|
throw JSONValidationError(filename + " is not an object");
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject root = doc.object();
|
|
|
|
|
|
|
|
Meta::MetadataVersion formatVersion = Meta::parseFormatVersion(root, false);
|
|
|
|
switch(formatVersion)
|
|
|
|
{
|
|
|
|
case Meta::MetadataVersion::InitialRelease:
|
|
|
|
break;
|
|
|
|
case Meta::MetadataVersion::Invalid:
|
|
|
|
throw JSONValidationError(filename + " does not contain a recognizable version of the metadata format.");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (requireOrder)
|
|
|
|
{
|
|
|
|
if (root.contains("order"))
|
|
|
|
{
|
|
|
|
out->order = requireInteger(root.value("order"));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// FIXME: evaluate if we don't want to throw exceptions here instead
|
|
|
|
qCritical() << filename << "doesn't contain an order field";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
out->name = root.value("name").toString();
|
|
|
|
|
|
|
|
if(root.contains("uid"))
|
|
|
|
{
|
|
|
|
out->uid = root.value("uid").toString();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
out->uid = root.value("fileId").toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
out->version = root.value("version").toString();
|
|
|
|
|
|
|
|
MojangVersionFormat::readVersionProperties(root, out.get());
|
|
|
|
|
|
|
|
// added for legacy Minecraft window embedding, TODO: remove
|
|
|
|
readString(root, "appletClass", out->appletClass);
|
|
|
|
|
|
|
|
if (root.contains("+tweakers"))
|
|
|
|
{
|
|
|
|
for (auto tweakerVal : requireArray(root.value("+tweakers")))
|
|
|
|
{
|
|
|
|
out->addTweakers.append(requireString(tweakerVal));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (root.contains("+traits"))
|
|
|
|
{
|
|
|
|
for (auto tweakerVal : requireArray(root.value("+traits")))
|
|
|
|
{
|
|
|
|
out->traits.insert(requireString(tweakerVal));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-06 11:52:24 +05:30
|
|
|
if (root.contains("+jvmArgs"))
|
|
|
|
{
|
|
|
|
for (auto arg : requireArray(root.value("+jvmArgs")))
|
|
|
|
{
|
|
|
|
out->addnJvmArguments.append(requireString(arg));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-15 18:21:05 +05:30
|
|
|
|
|
|
|
if (root.contains("jarMods"))
|
|
|
|
{
|
|
|
|
for (auto libVal : requireArray(root.value("jarMods")))
|
|
|
|
{
|
|
|
|
QJsonObject libObj = requireObject(libVal);
|
|
|
|
// parse the jarmod
|
2021-04-01 07:20:28 +05:30
|
|
|
auto lib = OneSixVersionFormat::jarModFromJson(*out, libObj, filename);
|
2018-07-15 18:21:05 +05:30
|
|
|
// and add to jar mods
|
|
|
|
out->jarMods.append(lib);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (root.contains("+jarMods")) // DEPRECATED: old style '+jarMods' are only here for backwards compatibility
|
|
|
|
{
|
|
|
|
for (auto libVal : requireArray(root.value("+jarMods")))
|
|
|
|
{
|
|
|
|
QJsonObject libObj = requireObject(libVal);
|
|
|
|
// parse the jarmod
|
2021-04-01 07:20:28 +05:30
|
|
|
auto lib = OneSixVersionFormat::plusJarModFromJson(*out, libObj, filename, out->name);
|
2018-07-15 18:21:05 +05:30
|
|
|
// and add to jar mods
|
|
|
|
out->jarMods.append(lib);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (root.contains("mods"))
|
|
|
|
{
|
|
|
|
for (auto libVal : requireArray(root.value("mods")))
|
|
|
|
{
|
|
|
|
QJsonObject libObj = requireObject(libVal);
|
|
|
|
// parse the jarmod
|
2021-04-01 07:20:28 +05:30
|
|
|
auto lib = OneSixVersionFormat::modFromJson(*out, libObj, filename);
|
2018-07-15 18:21:05 +05:30
|
|
|
// and add to jar mods
|
|
|
|
out->mods.append(lib);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-01 07:20:28 +05:30
|
|
|
auto readLibs = [&](const char * which, QList<LibraryPtr> & outList)
|
2018-07-15 18:21:05 +05:30
|
|
|
{
|
|
|
|
for (auto libVal : requireArray(root.value(which)))
|
|
|
|
{
|
|
|
|
QJsonObject libObj = requireObject(libVal);
|
|
|
|
// parse the library
|
2021-04-01 07:20:28 +05:30
|
|
|
auto lib = libraryFromJson(*out, libObj, filename);
|
|
|
|
outList.append(lib);
|
2018-07-15 18:21:05 +05:30
|
|
|
}
|
|
|
|
};
|
|
|
|
bool hasPlusLibs = root.contains("+libraries");
|
|
|
|
bool hasLibs = root.contains("libraries");
|
|
|
|
if (hasPlusLibs && hasLibs)
|
|
|
|
{
|
|
|
|
out->addProblem(ProblemSeverity::Warning,
|
|
|
|
QObject::tr("Version file has both '+libraries' and 'libraries'. This is no longer supported."));
|
2020-03-27 06:53:15 +05:30
|
|
|
readLibs("libraries", out->libraries);
|
|
|
|
readLibs("+libraries", out->libraries);
|
2018-07-15 18:21:05 +05:30
|
|
|
}
|
|
|
|
else if (hasLibs)
|
|
|
|
{
|
2020-03-27 06:53:15 +05:30
|
|
|
readLibs("libraries", out->libraries);
|
2018-07-15 18:21:05 +05:30
|
|
|
}
|
|
|
|
else if(hasPlusLibs)
|
|
|
|
{
|
2020-03-27 06:53:15 +05:30
|
|
|
readLibs("+libraries", out->libraries);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(root.contains("mavenFiles")) {
|
|
|
|
readLibs("mavenFiles", out->mavenFiles);
|
2018-07-15 18:21:05 +05:30
|
|
|
}
|
|
|
|
|
2022-04-06 11:52:24 +05:30
|
|
|
if(root.contains("+agents")) {
|
|
|
|
for (auto agentVal : requireArray(root.value("+agents")))
|
|
|
|
{
|
|
|
|
QJsonObject agentObj = requireObject(agentVal);
|
|
|
|
auto lib = libraryFromJson(*out, agentObj, filename);
|
|
|
|
QString arg = "";
|
|
|
|
if (agentObj.contains("argument"))
|
|
|
|
{
|
|
|
|
readString(agentObj, "argument", arg);
|
|
|
|
}
|
|
|
|
AgentPtr agent(new Agent(lib, arg));
|
|
|
|
out->agents.append(agent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-15 18:21:05 +05:30
|
|
|
// if we have mainJar, just use it
|
|
|
|
if(root.contains("mainJar"))
|
|
|
|
{
|
|
|
|
QJsonObject libObj = requireObject(root, "mainJar");
|
2021-04-01 07:20:28 +05:30
|
|
|
out->mainJar = libraryFromJson(*out, libObj, filename);
|
2018-07-15 18:21:05 +05:30
|
|
|
}
|
|
|
|
// else reconstruct it from downloads and id ... if that's available
|
|
|
|
else if(!out->minecraftVersion.isEmpty())
|
|
|
|
{
|
|
|
|
auto lib = std::make_shared<Library>();
|
|
|
|
lib->setRawName(GradleSpecifier(QString("com.mojang:minecraft:%1:client").arg(out->minecraftVersion)));
|
|
|
|
// we have a reliable client download, use it.
|
|
|
|
if(out->mojangDownloads.contains("client"))
|
|
|
|
{
|
|
|
|
auto LibDLInfo = std::make_shared<MojangLibraryDownloadInfo>();
|
|
|
|
LibDLInfo->artifact = out->mojangDownloads["client"];
|
|
|
|
lib->setMojangDownloadInfo(LibDLInfo);
|
|
|
|
}
|
2021-06-30 19:22:00 +05:30
|
|
|
// we got nothing...
|
2018-07-15 18:21:05 +05:30
|
|
|
else
|
|
|
|
{
|
2020-07-18 19:48:02 +05:30
|
|
|
out->addProblem(
|
|
|
|
ProblemSeverity::Error,
|
|
|
|
QObject::tr("URL for the main jar could not be determined - Mojang removed the server that we used as fallback.")
|
|
|
|
);
|
2018-07-15 18:21:05 +05:30
|
|
|
}
|
|
|
|
out->mainJar = lib;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (root.contains("requires"))
|
|
|
|
{
|
|
|
|
Meta::parseRequires(root, &out->requires);
|
|
|
|
}
|
|
|
|
QString dependsOnMinecraftVersion = root.value("mcVersion").toString();
|
|
|
|
if(!dependsOnMinecraftVersion.isEmpty())
|
|
|
|
{
|
|
|
|
Meta::Require mcReq;
|
|
|
|
mcReq.uid = "net.minecraft";
|
|
|
|
mcReq.equalsVersion = dependsOnMinecraftVersion;
|
|
|
|
if (out->requires.count(mcReq) == 0)
|
|
|
|
{
|
|
|
|
out->requires.insert(mcReq);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (root.contains("conflicts"))
|
|
|
|
{
|
|
|
|
Meta::parseRequires(root, &out->conflicts);
|
|
|
|
}
|
|
|
|
if (root.contains("volatile"))
|
|
|
|
{
|
|
|
|
out->m_volatile = requireBoolean(root, "volatile");
|
|
|
|
}
|
|
|
|
|
|
|
|
/* removed features that shouldn't be used */
|
|
|
|
if (root.contains("tweakers"))
|
|
|
|
{
|
|
|
|
out->addProblem(ProblemSeverity::Error, QObject::tr("Version file contains unsupported element 'tweakers'"));
|
|
|
|
}
|
|
|
|
if (root.contains("-libraries"))
|
|
|
|
{
|
|
|
|
out->addProblem(ProblemSeverity::Error, QObject::tr("Version file contains unsupported element '-libraries'"));
|
|
|
|
}
|
|
|
|
if (root.contains("-tweakers"))
|
|
|
|
{
|
|
|
|
out->addProblem(ProblemSeverity::Error, QObject::tr("Version file contains unsupported element '-tweakers'"));
|
|
|
|
}
|
|
|
|
if (root.contains("-minecraftArguments"))
|
|
|
|
{
|
|
|
|
out->addProblem(ProblemSeverity::Error, QObject::tr("Version file contains unsupported element '-minecraftArguments'"));
|
|
|
|
}
|
|
|
|
if (root.contains("+minecraftArguments"))
|
|
|
|
{
|
|
|
|
out->addProblem(ProblemSeverity::Error, QObject::tr("Version file contains unsupported element '+minecraftArguments'"));
|
|
|
|
}
|
|
|
|
return out;
|
2016-02-28 02:32:56 +05:30
|
|
|
}
|
|
|
|
|
2017-11-11 06:08:31 +05:30
|
|
|
QJsonDocument OneSixVersionFormat::versionFileToJson(const VersionFilePtr &patch)
|
2016-02-28 02:32:56 +05:30
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
QJsonObject root;
|
|
|
|
writeString(root, "name", patch->name);
|
|
|
|
|
|
|
|
writeString(root, "uid", patch->uid);
|
|
|
|
|
|
|
|
writeString(root, "version", patch->version);
|
|
|
|
|
|
|
|
Meta::serializeFormatVersion(root, Meta::MetadataVersion::InitialRelease);
|
|
|
|
|
|
|
|
MojangVersionFormat::writeVersionProperties(patch.get(), root);
|
|
|
|
|
|
|
|
if(patch->mainJar)
|
|
|
|
{
|
|
|
|
root.insert("mainJar", libraryToJson(patch->mainJar.get()));
|
|
|
|
}
|
|
|
|
writeString(root, "appletClass", patch->appletClass);
|
|
|
|
writeStringList(root, "+tweakers", patch->addTweakers);
|
2022-05-02 22:40:45 +05:30
|
|
|
writeStringList(root, "+traits", patch->traits.values());
|
2018-07-15 18:21:05 +05:30
|
|
|
if (!patch->libraries.isEmpty())
|
|
|
|
{
|
|
|
|
QJsonArray array;
|
|
|
|
for (auto value: patch->libraries)
|
|
|
|
{
|
|
|
|
array.append(OneSixVersionFormat::libraryToJson(value.get()));
|
|
|
|
}
|
|
|
|
root.insert("libraries", array);
|
|
|
|
}
|
2020-03-27 06:53:15 +05:30
|
|
|
if (!patch->mavenFiles.isEmpty())
|
|
|
|
{
|
|
|
|
QJsonArray array;
|
|
|
|
for (auto value: patch->mavenFiles)
|
|
|
|
{
|
|
|
|
array.append(OneSixVersionFormat::libraryToJson(value.get()));
|
|
|
|
}
|
|
|
|
root.insert("mavenFiles", array);
|
|
|
|
}
|
2018-07-15 18:21:05 +05:30
|
|
|
if (!patch->jarMods.isEmpty())
|
|
|
|
{
|
|
|
|
QJsonArray array;
|
|
|
|
for (auto value: patch->jarMods)
|
|
|
|
{
|
|
|
|
array.append(OneSixVersionFormat::jarModtoJson(value.get()));
|
|
|
|
}
|
|
|
|
root.insert("jarMods", array);
|
|
|
|
}
|
|
|
|
if (!patch->mods.isEmpty())
|
|
|
|
{
|
|
|
|
QJsonArray array;
|
|
|
|
for (auto value: patch->jarMods)
|
|
|
|
{
|
|
|
|
array.append(OneSixVersionFormat::modtoJson(value.get()));
|
|
|
|
}
|
|
|
|
root.insert("mods", array);
|
|
|
|
}
|
|
|
|
if(!patch->requires.empty())
|
|
|
|
{
|
|
|
|
Meta::serializeRequires(root, &patch->requires, "requires");
|
|
|
|
}
|
|
|
|
if(!patch->conflicts.empty())
|
|
|
|
{
|
|
|
|
Meta::serializeRequires(root, &patch->conflicts, "conflicts");
|
|
|
|
}
|
|
|
|
if(patch->m_volatile)
|
|
|
|
{
|
|
|
|
root.insert("volatile", true);
|
|
|
|
}
|
|
|
|
// write the contents to a json document.
|
|
|
|
{
|
|
|
|
QJsonDocument out;
|
|
|
|
out.setObject(root);
|
|
|
|
return out;
|
|
|
|
}
|
2016-02-28 02:32:56 +05:30
|
|
|
}
|
|
|
|
|
2021-04-01 07:20:28 +05:30
|
|
|
LibraryPtr OneSixVersionFormat::plusJarModFromJson(
|
|
|
|
ProblemContainer & problems,
|
|
|
|
const QJsonObject &libObj,
|
|
|
|
const QString &filename,
|
|
|
|
const QString &originalName
|
|
|
|
) {
|
2018-07-15 18:21:05 +05:30
|
|
|
LibraryPtr out(new Library());
|
|
|
|
if (!libObj.contains("name"))
|
|
|
|
{
|
|
|
|
throw JSONValidationError(filename +
|
|
|
|
"contains a jarmod that doesn't have a 'name' field");
|
|
|
|
}
|
|
|
|
|
|
|
|
// just make up something unique on the spot for the library name.
|
|
|
|
auto uuid = QUuid::createUuid();
|
|
|
|
QString id = uuid.toString().remove('{').remove('}');
|
|
|
|
out->setRawName(GradleSpecifier("org.multimc.jarmods:" + id + ":1"));
|
|
|
|
|
|
|
|
// filename override is the old name
|
|
|
|
out->setFilename(libObj.value("name").toString());
|
|
|
|
|
|
|
|
// it needs to be local, it is stored in the instance jarmods folder
|
|
|
|
out->setHint("local");
|
|
|
|
|
|
|
|
// read the original name if present - some versions did not set it
|
|
|
|
// it is the original jar mod filename before it got renamed at the point of addition
|
|
|
|
auto displayName = libObj.value("originalName").toString();
|
|
|
|
if(displayName.isEmpty())
|
|
|
|
{
|
|
|
|
auto fixed = originalName;
|
|
|
|
fixed.remove(" (jar mod)");
|
|
|
|
out->setDisplayName(fixed);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
out->setDisplayName(displayName);
|
|
|
|
}
|
|
|
|
return out;
|
2016-02-28 23:31:54 +05:30
|
|
|
}
|
|
|
|
|
2021-04-01 07:20:28 +05:30
|
|
|
LibraryPtr OneSixVersionFormat::jarModFromJson(ProblemContainer & problems, const QJsonObject& libObj, const QString& filename)
|
2017-04-18 02:21:30 +05:30
|
|
|
{
|
2021-04-01 07:20:28 +05:30
|
|
|
return libraryFromJson(problems, libObj, filename);
|
2017-04-18 02:21:30 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QJsonObject OneSixVersionFormat::jarModtoJson(Library *jarmod)
|
2016-02-28 23:31:54 +05:30
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
return libraryToJson(jarmod);
|
2016-02-28 23:31:54 +05:30
|
|
|
}
|
2017-04-22 01:53:00 +05:30
|
|
|
|
2021-04-01 07:20:28 +05:30
|
|
|
LibraryPtr OneSixVersionFormat::modFromJson(ProblemContainer & problems, const QJsonObject& libObj, const QString& filename)
|
2017-04-22 01:53:00 +05:30
|
|
|
{
|
2021-04-01 07:20:28 +05:30
|
|
|
return libraryFromJson(problems, libObj, filename);
|
2017-04-22 01:53:00 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject OneSixVersionFormat::modtoJson(Library *jarmod)
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
return libraryToJson(jarmod);
|
2017-04-22 01:53:00 +05:30
|
|
|
}
|