2022-05-15 16:50:05 +05:30
|
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
/*
|
|
|
|
* PolyMC - Minecraft Launcher
|
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2022-01-14 14:13:42 +05:30
|
|
|
#pragma once
|
|
|
|
|
2022-03-03 03:05:59 +05:30
|
|
|
#include "modplatform/ModIndex.h"
|
|
|
|
|
2022-01-15 14:55:24 +05:30
|
|
|
#include "BaseInstance.h"
|
2022-03-08 19:42:35 +05:30
|
|
|
#include <QNetworkAccessManager>
|
2022-01-14 14:13:42 +05:30
|
|
|
|
|
|
|
namespace Modrinth {
|
|
|
|
|
2022-03-03 03:05:59 +05:30
|
|
|
void loadIndexedPack(ModPlatform::IndexedPack& m, QJsonObject& obj);
|
2022-05-24 18:08:48 +05:30
|
|
|
void loadExtraPackData(ModPlatform::IndexedPack& m, QJsonObject& obj);
|
2022-03-03 03:05:59 +05:30
|
|
|
void loadIndexedPackVersions(ModPlatform::IndexedPack& pack,
|
|
|
|
QJsonArray& arr,
|
|
|
|
const shared_qobject_ptr<QNetworkAccessManager>& network,
|
|
|
|
BaseInstance* inst);
|
2022-04-22 21:53:47 +05:30
|
|
|
auto loadIndexedPackVersion(QJsonObject& obj) -> ModPlatform::IndexedVersion;
|
2022-01-14 14:13:42 +05:30
|
|
|
|
2022-03-03 03:05:59 +05:30
|
|
|
} // namespace Modrinth
|