diff options
| author | Fabio Alessandrelli | 2017-05-08 22:22:28 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli | 2017-05-09 15:05:45 +0200 |
| commit | 98eb58a93cb34f42e42e6ee4f9f74fc15d4e9d85 (patch) | |
| tree | a7d9477d840b7b11ee35ed29754688d6d12ef86a /main/main.cpp | |
| parent | a1c41be56977e22e953191dd9e90621d09f294cc (diff) | |
| download | godot-98eb58a93cb34f42e42e6ee4f9f74fc15d4e9d85.tar.gz godot-98eb58a93cb34f42e42e6ee4f9f74fc15d4e9d85.tar.zst godot-98eb58a93cb34f42e42e6ee4f9f74fc15d4e9d85.zip | |
Diffstat (limited to 'main/main.cpp')
| -rw-r--r-- | main/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp index 33095e859..ea7d8e075 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -588,8 +588,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph ScriptDebuggerRemote *sdr = memnew(ScriptDebuggerRemote); uint16_t debug_port = GLOBAL_GET("network/debug/remote_port"); if (debug_host.find(":") != -1) { - debug_port = debug_host.get_slicec(':', 1).to_int(); - debug_host = debug_host.get_slicec(':', 0); + int sep_pos = debug_host.find_last(":"); + debug_port = debug_host.substr(sep_pos + 1, debug_host.length()).to_int(); + debug_host = debug_host.substr(0, sep_pos); } Error derr = sdr->connect_to_host(debug_host, debug_port); |
