Browse Source

C#: Fix not assigning `runtime_initialized` when initializing with AOT.

Zae 1 year ago
parent
commit
e868a9f577
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) {
 			is_native_aot = true;
+			runtime_initialized = true;
 		} else {
 			ERR_FAIL_MSG(".NET: Failed to load hostfxr");
 		}