Web: Clarify that OS.get_unique_id is not supported
Remove the base error message in `OS`, we no longer really error out this way for not implemented methods. Instead, each platform should override them to provide the context they want. Fixes #82439.
This commit is contained in:
@ -132,6 +132,10 @@ int OS_Web::get_processor_count() const {
|
||||
return godot_js_os_hw_concurrency_get();
|
||||
}
|
||||
|
||||
String OS_Web::get_unique_id() const {
|
||||
ERR_FAIL_V_MSG("", "OS::get_unique_id() is not available on the Web platform.");
|
||||
}
|
||||
|
||||
bool OS_Web::_check_internal_feature_support(const String &p_feature) {
|
||||
if (p_feature == "web") {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user