fix resource packs and add support for texture packs

Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
This commit is contained in:
Ryan Cao
2022-11-19 23:38:05 +08:00
parent 8dacbafc8b
commit b1bdc6f745
5 changed files with 35 additions and 8 deletions

View File

@ -62,3 +62,8 @@ QPixmap TexturePack::image(QSize size)
TexturePackUtils::process(*this);
return image(size);
}
bool TexturePack::valid() const
{
return m_description != nullptr;
}