| 75 | } |
| 76 | |
| 77 | std::pair<Version, Version> ResourcePack::compatibleVersions() const |
| 78 | { |
| 79 | if (!s_pack_format_versions.contains(m_pack_format)) { |
| 80 | return { {}, {} }; |
| 81 | } |
| 82 | |
| 83 | return s_pack_format_versions.constFind(m_pack_format).value(); |
| 84 | } |
| 85 | |
| 86 | std::pair<int, bool> ResourcePack::compare(const Resource& other, SortType type) const |
| 87 | { |