aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/tasks
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-08-30 18:06:13 -0300
committerflow <flowlnlnln@gmail.com>2022-09-03 13:37:22 -0300
commit3b13e692d29c96f99b2c153dd2c7933070eb8479 (patch)
treea0296e12519a146ef8545622453dff23b19b552c /launcher/minecraft/mod/tasks
parent0331f5a1eb3e9fa21e89fc7fd56fdd4e87f29e44 (diff)
downloadPrismLauncher-3b13e692d29c96f99b2c153dd2c7933070eb8479.tar.gz
PrismLauncher-3b13e692d29c96f99b2c153dd2c7933070eb8479.tar.bz2
PrismLauncher-3b13e692d29c96f99b2c153dd2c7933070eb8479.zip
feat: move resource pack images to QPixmapCache
This takes care of evicting entries when the cache gets too big for us, so we can add new entries without much worries. Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/minecraft/mod/tasks')
-rw-r--r--launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp b/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp
index 4634e08b..4f87bc13 100644
--- a/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp
+++ b/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp
@@ -24,6 +24,8 @@
#include <quazip/quazip.h>
#include <quazip/quazipfile.h>
+#include <QCryptographicHash>
+
namespace ResourcePackUtils {
bool process(ResourcePack& pack)