| 946 | } |
| 947 | |
| 948 | void ScriptEditorDebugger::_parse_message(const String &p_msg, uint64_t p_thread_id, const Array &p_data) { |
| 949 | emit_signal(SNAME("debug_data"), p_msg, p_data); |
| 950 | |
| 951 | ParseMessageFunc *fn_ptr = parse_message_handlers.getptr(p_msg); |
| 952 | if (fn_ptr) { |
| 953 | (this->**fn_ptr)(p_thread_id, p_data); |
| 954 | } else { |
| 955 | int colon_index = p_msg.find_char(':'); |
| 956 | ERR_FAIL_COND_MSG(colon_index < 1, "Invalid message received"); |
| 957 | |
| 958 | bool parsed = EditorDebuggerNode::get_singleton()->plugins_capture(this, p_msg, p_data); |
| 959 | if (!parsed) { |
| 960 | WARN_PRINT("Unknown message: " + p_msg); |
| 961 | } |
| 962 | } |
| 963 | } |
| 964 | |
| 965 | HashMap<String, ScriptEditorDebugger::ParseMessageFunc> ScriptEditorDebugger::parse_message_handlers; |
| 966 |
nothing calls this directly
no test coverage detected