summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/AssetsUtils.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-02-19 01:00:03 +0100
committerPetr Mrázek <peterix@gmail.com>2019-02-19 01:00:03 +0100
commit9c82adaee57a9da5ef818143b89f30c2439f68be (patch)
tree359fb9f866854acfc72881a4e0fcd93af046f1d4 /api/logic/minecraft/AssetsUtils.h
parent0a99d037c45803ecf472d82fb794e05be431646f (diff)
downloadMultiMC-9c82adaee57a9da5ef818143b89f30c2439f68be.tar
MultiMC-9c82adaee57a9da5ef818143b89f30c2439f68be.tar.gz
MultiMC-9c82adaee57a9da5ef818143b89f30c2439f68be.tar.lz
MultiMC-9c82adaee57a9da5ef818143b89f30c2439f68be.tar.xz
MultiMC-9c82adaee57a9da5ef818143b89f30c2439f68be.zip
GH-2209 Fix sounds in old (pre-1.6) versions
Diffstat (limited to 'api/logic/minecraft/AssetsUtils.h')
-rw-r--r--api/logic/minecraft/AssetsUtils.h9
1 files changed, 7 insertions, 2 deletions
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<QString, AssetObject> 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);
}