aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_run_native.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-08-06 02:37:40 -0300
committerJuan Linietsky2015-08-06 02:37:40 -0300
commit9d185ccc30ad5fe7eb716390ca2e7f5c06574ce0 (patch)
treef497a42db3bc171e52cc60996ddb92f9d09a313b /tools/editor/editor_run_native.cpp
parent8280bb0de0737f9149face902db21192a0d98ca8 (diff)
downloadgodot-9d185ccc30ad5fe7eb716390ca2e7f5c06574ce0.tar.gz
godot-9d185ccc30ad5fe7eb716390ca2e7f5c06574ce0.tar.zst
godot-9d185ccc30ad5fe7eb716390ca2e7f5c06574ce0.zip
-Merged the file server with the live editing and remote debug
-It is now really easy to deploy an android build with debug, and debug it
Diffstat (limited to 'tools/editor/editor_run_native.cpp')
-rw-r--r--tools/editor/editor_run_native.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/tools/editor/editor_run_native.cpp b/tools/editor/editor_run_native.cpp
index 83b1753ea..42c7f8960 100644
--- a/tools/editor/editor_run_native.cpp
+++ b/tools/editor/editor_run_native.cpp
@@ -101,12 +101,18 @@ void EditorRunNative::_run_native(int p_idx,const String& p_platform) {
Ref<EditorExportPlatform> eep = EditorImportExport::get_singleton()->get_export_platform(p_platform);
ERR_FAIL_COND(eep.is_null());
- eep->run(p_idx,deploy_dumb);
+ if (deploy_debug_remote) {
+ emit_signal("native_run");
+
+ }
+ eep->run(p_idx,deploy_dumb,deploy_debug_remote);
}
void EditorRunNative::_bind_methods() {
ObjectTypeDB::bind_method("_run_native",&EditorRunNative::_run_native);
+
+ ADD_SIGNAL(MethodInfo("native_run"));
}
void EditorRunNative::set_deploy_dumb(bool p_enabled) {
@@ -119,10 +125,21 @@ bool EditorRunNative::is_deploy_dumb_enabled() const{
return deploy_dumb;
}
+void EditorRunNative::set_deploy_debug_remote(bool p_enabled) {
+
+ deploy_debug_remote=p_enabled;
+}
+
+bool EditorRunNative::is_deploy_debug_remote_enabled() const{
+
+ return deploy_debug_remote;
+}
+
EditorRunNative::EditorRunNative()
{
set_process(true);
first=true;
deploy_dumb=false;
+ deploy_debug_remote=false;
}