diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-12-02 20:46:01 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-12-02 20:46:04 +0100 |
commit | b9a17f59997ced5be50c9316406cbc5791265099 (patch) | |
tree | 21296860dc21b3d418adf37b6c720db71e5dee68 /launcher/minecraft/mod/ResourcePack.cpp | |
parent | 66f9fed2f2fccfb00ee3086637a667eca60213aa (diff) | |
parent | ab23f542c648f09e989b2fa650031e169567a3d6 (diff) | |
download | PrismLauncher-b9a17f59997ced5be50c9316406cbc5791265099.tar.gz PrismLauncher-b9a17f59997ced5be50c9316406cbc5791265099.tar.bz2 PrismLauncher-b9a17f59997ced5be50c9316406cbc5791265099.zip |
Merge branch 'upstream/develop' into develop
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/minecraft/mod/ResourcePack.cpp')
-rw-r--r-- | launcher/minecraft/mod/ResourcePack.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/ResourcePack.cpp b/launcher/minecraft/mod/ResourcePack.cpp index 3fc10a2f..4a9ad21b 100644 --- a/launcher/minecraft/mod/ResourcePack.cpp +++ b/launcher/minecraft/mod/ResourcePack.cpp @@ -15,7 +15,7 @@ static const QMap<int, std::pair<Version, Version>> s_pack_format_versions = { { 3, { Version("1.11"), Version("1.12.2") } }, { 4, { Version("1.13"), Version("1.14.4") } }, { 5, { Version("1.15"), Version("1.16.1") } }, { 6, { Version("1.16.2"), Version("1.16.5") } }, { 7, { Version("1.17"), Version("1.17.1") } }, { 8, { Version("1.18"), Version("1.18.2") } }, - { 9, { Version("1.19"), Version("1.19.2") } }, + { 9, { Version("1.19"), Version("1.19.2") } }, { 11, { Version("1.19.3"), Version("1.19.3") } }, }; void ResourcePack::setPackFormat(int new_format_id) @@ -114,3 +114,8 @@ bool ResourcePack::applyFilter(QRegularExpression filter) const return Resource::applyFilter(filter); } + +bool ResourcePack::valid() const +{ + return m_pack_format != 0; +} |