[Web] Add Web-build specific stdout header

This commit is contained in:
Adam Scott
2025-06-11 12:14:51 -04:00
parent cc9761c3f0
commit f411c5b2f1
9 changed files with 101 additions and 5 deletions

View File

@@ -160,6 +160,22 @@ bool OS_Web::_check_internal_feature_support(const String &p_feature) {
if (p_feature == "web") {
return true;
}
if (p_feature == "web_extensions") {
#ifdef WEB_DLINK_ENABLED
return true;
#else
return false;
#endif
}
if (p_feature == "web_noextensions") {
#ifdef WEB_DLINK_ENABLED
return false;
#else
return true;
#endif
}
if (godot_js_os_has_feature(p_feature.utf8().get_data())) {
return true;
}