Added smart file selection

This might fail in a few special cases
This commit is contained in:
timoreo
2022-01-15 10:25:24 +01:00
parent f6de472da2
commit 621e0ba4a8
4 changed files with 43 additions and 10 deletions

View File

@ -7,6 +7,7 @@
#include <QNetworkAccessManager>
#include <QObjectPtr.h>
#include "net/NetJob.h"
#include "BaseInstance.h"
namespace Modrinth {
@ -41,8 +42,7 @@ struct IndexedPack
};
void loadIndexedPack(IndexedPack & m, QJsonObject & obj);
void loadIndexedPackVersions(IndexedPack & m, QJsonArray & arr, const shared_qobject_ptr<QNetworkAccessManager>& network);
void versionJobFinished();
void loadIndexedPackVersions(IndexedPack &pack, QJsonArray &arr, const shared_qobject_ptr<QNetworkAccessManager> &network, BaseInstance *inst);
}
Q_DECLARE_METATYPE(Modrinth::IndexedPack)