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

Fix network/debug/remote_port editor setting not working properly

This commit is contained in:
Fabio Alessandrelli
2017-06-10 16:28:18 +02:00
parent fc1368bee0
commit b76275ab12
4 changed files with 11 additions and 8 deletions

View File

@@ -1714,7 +1714,7 @@ Error EditorExportPlatformAndroid::run(int p_device, int p_flags) {
args.push_back("--remove-all");
err = OS::get_singleton()->execute(adb,args,true,NULL,NULL,&rv);
int port = GlobalConfig::get_singleton()->get("network/debug/remote_port");
int port = (int)EditorSettings::get_singleton()->get("network/debug/remote_port");
args.clear();
args.push_back("reverse");
args.push_back("tcp:"+itos(port));
@@ -2993,7 +2993,7 @@ public:
args.push_back("--remove-all");
err = OS::get_singleton()->execute(adb, args, true, NULL, NULL, &rv);
int port = GlobalConfig::get_singleton()->get("network/debug/remote_port");
int port = (int)EditorSettings::get_singleton()->get("network/debug/remote_port");
args.clear();
args.push_back("reverse");
args.push_back("tcp:" + itos(port));