mirror of https://github.com/AxioDL/metaforce.git
I *love* windows.....
This commit is contained in:
parent
989c267dce
commit
a5e204afe4
|
@ -161,10 +161,10 @@ std::optional<std::string> FindBlender(int& major, int& minor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsVersionSupported(int major, int minor) {
|
bool IsVersionSupported(int major, int minor) {
|
||||||
const auto* it =
|
auto it =
|
||||||
std::find_if(SupportedVersions.cbegin(), SupportedVersions.cend(),
|
std::find_if(SupportedVersions.cbegin(), SupportedVersions.cend(),
|
||||||
[&major, &minor](const auto& version) { return version.Major == major && version.Minor == minor; });
|
[&major, &minor](const auto& version) { return version.Major == major && version.Minor == minor; });
|
||||||
return it != nullptr;
|
return it != SupportedVersions.cend();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::pair<uint32_t, uint32_t> GetLatestSupportedVersion() {
|
std::pair<uint32_t, uint32_t> GetLatestSupportedVersion() {
|
||||||
|
|
Loading…
Reference in New Issue