From d587720010036e3335e321f192449808a75e958b Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Mon, 21 Mar 2016 02:19:23 +0100 Subject: NOISSUE use new mojang assets locations --- logic/minecraft/AssetsUtils.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'logic/minecraft/AssetsUtils.h') diff --git a/logic/minecraft/AssetsUtils.h b/logic/minecraft/AssetsUtils.h index 2aecd4c5..90251c2d 100644 --- a/logic/minecraft/AssetsUtils.h +++ b/logic/minecraft/AssetsUtils.h @@ -17,22 +17,32 @@ #include #include +#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 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); } -- cgit