You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Mono: Add assembly reloading to running games
Add environment variable to specify a custom --debugger-agent for mono.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user