mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 12:37:23 +00:00
NOISSUE use new mojang assets locations
This commit is contained in:
@@ -17,22 +17,32 @@
|
||||
|
||||
#include <QString>
|
||||
#include <QMap>
|
||||
#include "net/NetAction.h"
|
||||
#include "net/NetJob.h"
|
||||
|
||||
struct AssetObject
|
||||
{
|
||||
QString getRelPath();
|
||||
QUrl getUrl();
|
||||
QString getLocalPath();
|
||||
NetActionPtr getDownloadAction();
|
||||
|
||||
QString hash;
|
||||
qint64 size;
|
||||
};
|
||||
|
||||
struct AssetsIndex
|
||||
{
|
||||
NetJobPtr getDownloadJob();
|
||||
|
||||
QString id;
|
||||
QMap<QString, AssetObject> objects;
|
||||
bool isVirtual = false;
|
||||
};
|
||||
|
||||
namespace AssetsUtils
|
||||
{
|
||||
bool loadAssetsIndexJson(QString file, AssetsIndex* index);
|
||||
bool loadAssetsIndexJson(QString id, QString file, AssetsIndex* index);
|
||||
/// Reconstruct a virtual assets folder for the given assets ID and return the folder
|
||||
QDir reconstructAssets(QString assetsId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user