diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-01-21 22:44:05 +0100 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-01-21 22:44:09 +0100 |
commit | 077e48977384a1b1c2e527e5df9012b64b56e847 (patch) | |
tree | 22b15dcd099a77615d64aaef6c516b2a95e68f74 /modules/mono/editor/mono_bottom_panel.cpp | |
parent | 6fa632b82121aff5537d627364d2f10fdeafc418 (diff) |
Mono: Add assembly reloading to running games
Add environment variable to specify a custom --debugger-agent for mono.
Diffstat (limited to 'modules/mono/editor/mono_bottom_panel.cpp')
-rw-r--r-- | modules/mono/editor/mono_bottom_panel.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/mono/editor/mono_bottom_panel.cpp b/modules/mono/editor/mono_bottom_panel.cpp index feebdb380b..55a334bc4e 100644 --- a/modules/mono/editor/mono_bottom_panel.cpp +++ b/modules/mono/editor/mono_bottom_panel.cpp @@ -30,6 +30,9 @@ #include "mono_bottom_panel.h" +#include "editor/plugins/script_editor_plugin.h" +#include "editor/script_editor_debugger.h" + #include "../csharp_script.h" #include "../godotsharp_dirs.h" #include "csharp_project.h" @@ -160,7 +163,12 @@ void MonoBottomPanel::_build_project_pressed() { bool build_success = GodotSharpBuilds::get_singleton()->build_project_blocking("Tools"); if (build_success) { + // Notify running game for hot-reload + ScriptEditor::get_singleton()->get_debugger()->reload_scripts(); + + // Hot-reload in the editor MonoReloadNode::get_singleton()->restart_reload_timer(); + if (CSharpLanguage::get_singleton()->is_assembly_reloading_needed()) { CSharpLanguage::get_singleton()->reload_assemblies(false); } |