浏览代码

Fix 'linux' and specific BSD feature tags

David Snopek 2 年之前
父节点
当前提交
87fcee2d7f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      platform/linuxbsd/os_linuxbsd.cpp

+ 5 - 0
platform/linuxbsd/os_linuxbsd.cpp

@@ -494,6 +494,11 @@ bool OS_LinuxBSD::_check_internal_feature_support(const String &p_feature) {
 		return true;
 	}
 
+	// Match against the specific OS (linux, freebsd, etc).
+	if (p_feature == get_name().to_lower()) {
+		return true;
+	}
+
 	return false;
 }