summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-05-12 12:49:50 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-06-15 16:25:18 +0300
commit2d2b2cadfaf66dca6d27659718e461177c00081e (patch)
tree6034fd90bbdbc77895999093000015814046e129
parent773414606079fa745d1c37fce49324ab6a09e972 (diff)
downloadredot-engine-2d2b2cadfaf66dca6d27659718e461177c00081e.tar.gz
Fix `bsd` feature tag includes only "other BSDs"
-rw-r--r--platform/linuxbsd/os_linuxbsd.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/platform/linuxbsd/os_linuxbsd.cpp b/platform/linuxbsd/os_linuxbsd.cpp
index ebdbd061d1..35807875a5 100644
--- a/platform/linuxbsd/os_linuxbsd.cpp
+++ b/platform/linuxbsd/os_linuxbsd.cpp
@@ -496,11 +496,19 @@ bool OS_LinuxBSD::_check_internal_feature_support(const String &p_feature) {
return font_config_initialized;
}
#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") {
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()) {
return true;
}