mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
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.
(cherry picked from commit 0a10f09ce4
)
This commit is contained in:
parent
574a5e59f3
commit
f706a3bd54
4 changed files with 7 additions and 2 deletions
|
@ -1005,6 +1005,10 @@ int OS_JavaScript::get_processor_count() const {
|
|||
return godot_js_os_hw_concurrency_get();
|
||||
}
|
||||
|
||||
String OS_JavaScript::get_unique_id() const {
|
||||
ERR_FAIL_V_MSG("", "OS::get_unique_id() is not available on the HTML5 platform.");
|
||||
}
|
||||
|
||||
bool OS_JavaScript::_check_internal_feature_support(const String &p_feature) {
|
||||
if (p_feature == "HTML5" || p_feature == "web") {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue