瀏覽代碼

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

Zae 1 年之前
父節點
當前提交
e868a9f577
共有 1 個文件被更改,包括 1 次插入0 次删除
  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");
 		}
 		}