aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ResourcePack.cpp
diff options
context:
space:
mode:
authorRyan Cao <70191398+ryanccn@users.noreply.github.com>2022-11-19 23:38:05 +0800
committerRyan Cao <70191398+ryanccn@users.noreply.github.com>2022-11-19 23:38:05 +0800
commitb1bdc6f745d607af4dc1bb592003a538ee03f058 (patch)
tree2e9bddf73a4c15ef526f0ad6c549366dfe76ca3f /launcher/minecraft/mod/ResourcePack.cpp
parent8dacbafc8ba45ae6c2b770da77cc0d3d632849ba (diff)
downloadPrismLauncher-b1bdc6f745d607af4dc1bb592003a538ee03f058.tar.gz
PrismLauncher-b1bdc6f745d607af4dc1bb592003a538ee03f058.tar.bz2
PrismLauncher-b1bdc6f745d607af4dc1bb592003a538ee03f058.zip
fix resource packs and add support for texture packs
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/ResourcePack.cpp')
-rw-r--r--launcher/minecraft/mod/ResourcePack.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/ResourcePack.cpp b/launcher/minecraft/mod/ResourcePack.cpp
index 3fc10a2f..9f46cd2c 100644
--- a/launcher/minecraft/mod/ResourcePack.cpp
+++ b/launcher/minecraft/mod/ResourcePack.cpp
@@ -114,3 +114,8 @@ bool ResourcePack::applyFilter(QRegularExpression filter) const
return Resource::applyFilter(filter);
}
+
+bool ResourcePack::valid() const
+{
+ return m_pack_format != 0;
+}