2022-01-16 10:20:21 +00:00
|
|
|
//
|
|
|
|
// Created by timoreo on 16/01/2022.
|
|
|
|
//
|
|
|
|
|
|
|
|
#pragma once
|
2022-03-02 21:35:59 +00:00
|
|
|
|
|
|
|
#include "modplatform/ModIndex.h"
|
|
|
|
|
2022-01-16 10:20:21 +00:00
|
|
|
#include "BaseInstance.h"
|
2022-03-08 14:12:35 +00:00
|
|
|
#include <QNetworkAccessManager>
|
2022-01-16 10:20:21 +00:00
|
|
|
|
|
|
|
namespace FlameMod {
|
|
|
|
|
2022-03-02 21:35:59 +00:00
|
|
|
void loadIndexedPack(ModPlatform::IndexedPack& m, QJsonObject& obj);
|
2022-07-19 16:29:31 +01:00
|
|
|
void loadURLs(ModPlatform::IndexedPack& m, QJsonObject& obj);
|
|
|
|
void loadBody(ModPlatform::IndexedPack& m, QJsonObject& obj);
|
2022-03-02 21:35:59 +00:00
|
|
|
void loadIndexedPackVersions(ModPlatform::IndexedPack& pack,
|
|
|
|
QJsonArray& arr,
|
|
|
|
const shared_qobject_ptr<QNetworkAccessManager>& network,
|
2022-12-18 18:41:46 +00:00
|
|
|
const BaseInstance* inst);
|
2022-06-04 00:45:44 +01:00
|
|
|
auto loadIndexedPackVersion(QJsonObject& obj, bool load_changelog = false) -> ModPlatform::IndexedVersion;
|
2022-01-16 10:20:21 +00:00
|
|
|
|
2022-03-02 21:35:59 +00:00
|
|
|
} // namespace FlameMod
|