Browse Source

Merge pull request #87597 from zaevi/fix_csharp_aot_initialization

C#: Fix not assigning `runtime_initialized` when initializing with AOT.
Rémi Verschelde 1 year ago
parent
commit
99ac3d332a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/mono/mono_gd/gd_mono.cpp

+ 1 - 0
modules/mono/mono_gd/gd_mono.cpp

@@ -395,6 +395,7 @@ void GDMono::initialize() {
 
 
 		if (godot_plugins_initialize != nullptr) {
 		if (godot_plugins_initialize != nullptr) {
 			is_native_aot = true;
 			is_native_aot = true;
+			runtime_initialized = true;
 		} else {
 		} else {
 			ERR_FAIL_MSG(".NET: Failed to load hostfxr");
 			ERR_FAIL_MSG(".NET: Failed to load hostfxr");
 		}
 		}