mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
[Web] Add Web-build specific stdout header
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user