From 9c82adaee57a9da5ef818143b89f30c2439f68be Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Tue, 19 Feb 2019 01:00:03 +0100 Subject: GH-2209 Fix sounds in old (pre-1.6) versions --- api/logic/minecraft/AssetsUtils.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'api/logic/minecraft/AssetsUtils.h') diff --git a/api/logic/minecraft/AssetsUtils.h b/api/logic/minecraft/AssetsUtils.h index 3755210c..356b8c8a 100644 --- a/api/logic/minecraft/AssetsUtils.h +++ b/api/logic/minecraft/AssetsUtils.h @@ -38,11 +38,16 @@ struct AssetsIndex QString id; QMap objects; bool isVirtual = false; + bool mapToResources = false; }; +/// FIXME: this is absolutely horrendous. REDO!!!! namespace AssetsUtils { -bool loadAssetsIndexJson(QString id, QString file, AssetsIndex* index); +bool loadAssetsIndexJson(const QString &id, const QString &file, AssetsIndex& index); + +QDir getAssetsDir(const QString &assetsId, const QString &resourcesFolder); + /// Reconstruct a virtual assets folder for the given assets ID and return the folder -QDir reconstructAssets(QString assetsId); +bool reconstructAssets(QString assetsId, QString resourcesFolder); } -- cgit