Fix bsd
feature tag includes only "other BSDs"
This commit is contained in:
parent
7734146060
commit
2d2b2cadfa
@ -496,11 +496,19 @@ bool OS_LinuxBSD::_check_internal_feature_support(const String &p_feature) {
|
|||||||
return font_config_initialized;
|
return font_config_initialized;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __linux__
|
||||||
|
// `bsd` includes **all** BSD, not only "other BSD" (see `get_name()`).
|
||||||
|
if (p_feature == "bsd") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (p_feature == "pc") {
|
if (p_feature == "pc") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Match against the specific OS (linux, freebsd, etc).
|
// Match against the specific OS (`linux`, `freebsd`, `netbsd`, `openbsd`).
|
||||||
if (p_feature == get_name().to_lower()) {
|
if (p_feature == get_name().to_lower()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user