1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Remove "debug/remote_port" project setting (moved to editor)

Also updated default port from 6007 (X11) to 6096 (unspec)
This commit is contained in:
Fabio Alessandrelli
2017-07-22 14:22:45 +02:00
parent 63a9b02131
commit c3055b24d1
5 changed files with 9 additions and 7 deletions

View File

@@ -1169,9 +1169,9 @@ void ScriptEditorDebugger::start() {
perf_max[i] = 0;
}
uint16_t remote_port = GLOBAL_DEF("debug/remote_port", 6007);
if (server->listen(remote_port) != OK) {
EditorNode::get_log()->add_message(String("** Error listening on port ") + itos(remote_port) + String(" **"));
uint16_t debug_port = (int)EditorSettings::get_singleton()->get("network/debug_port");
if (server->listen(debug_port) != OK) {
EditorNode::get_log()->add_message(String("** Error listening on port ") + itos(debug_port) + String(" **"));
return;
}
set_process(true);