1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00
This commit is contained in:
Talkashie
2025-08-19 18:32:59 -05:00
parent 28bd72a7e1
commit bc7e68dfd1
19 changed files with 97 additions and 97 deletions

View File

@@ -529,7 +529,7 @@ void Performance::add_custom_monitor(const StringName &p_id, const Callable &p_c
}
void Performance::remove_custom_monitor(const StringName &p_id) {
ERR_FAIL_COND_MSG(!has_custom_monitor(p_id), "Custom monitor with id '" + String(p_id) + "' doesn't exists.");
ERR_FAIL_COND_MSG(!has_custom_monitor(p_id), "Custom monitor with id '" + String(p_id) + "' doesn't exist.");
_monitor_map.erase(p_id);
_monitor_modification_time = OS::get_singleton()->get_ticks_usec();
}
@@ -539,7 +539,7 @@ bool Performance::has_custom_monitor(const StringName &p_id) {
}
Variant Performance::get_custom_monitor(const StringName &p_id) {
ERR_FAIL_COND_V_MSG(!has_custom_monitor(p_id), Variant(), "Custom monitor with id '" + String(p_id) + "' doesn't exists.");
ERR_FAIL_COND_V_MSG(!has_custom_monitor(p_id), Variant(), "Custom monitor with id '" + String(p_id) + "' doesn't exist.");
bool error;
String error_message;
Variant return_value = _monitor_map[p_id].call(error, error_message);