aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/TexturePack.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-12-02 06:39:54 -0800
committerGitHub <noreply@github.com>2022-12-02 06:39:54 -0800
commitfa98bf1ee7cfd9fcbc956b2c603f72398d0d69ce (patch)
tree9865ad46c880b9a808519acdbb4e81cb32289aba /launcher/minecraft/mod/TexturePack.cpp
parentd1a1b8b6e8dc2eada28db9277a449e1a63fe9cdf (diff)
parent3cc987a5b4afdc0b8df5be420fc6d1e2a19fbe66 (diff)
downloadPrismLauncher-fa98bf1ee7cfd9fcbc956b2c603f72398d0d69ce.tar.gz
PrismLauncher-fa98bf1ee7cfd9fcbc956b2c603f72398d0d69ce.tar.bz2
PrismLauncher-fa98bf1ee7cfd9fcbc956b2c603f72398d0d69ce.zip
Merge pull request #481 from ryanccn/import-resource-pack-dialog-uwu
Diffstat (limited to 'launcher/minecraft/mod/TexturePack.cpp')
-rw-r--r--launcher/minecraft/mod/TexturePack.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/TexturePack.cpp b/launcher/minecraft/mod/TexturePack.cpp
index 796eb69d..99d55584 100644
--- a/launcher/minecraft/mod/TexturePack.cpp
+++ b/launcher/minecraft/mod/TexturePack.cpp
@@ -62,3 +62,8 @@ QPixmap TexturePack::image(QSize size)
TexturePackUtils::process(*this);
return image(size);
}
+
+bool TexturePack::valid() const
+{
+ return m_description != nullptr;
+}