فهرست منبع

Merge pull request #105853 from youngminz/android-dotnet-skip-extraction

[.NET] Load assemblies directly from PCK on Android
Rémi Verschelde 3 ماه پیش
والد
کامیت
56937b8383
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      modules/mono/godotsharp_dirs.cpp

+ 5 - 0
modules/mono/godotsharp_dirs.cpp

@@ -169,6 +169,10 @@ private:
 		String arch = Engine::get_singleton()->get_architecture_name();
 		String appname_safe = Path::get_csharp_project_name();
 		String packed_path = "res://.godot/mono/publish/" + arch;
+#ifdef ANDROID_ENABLED
+		api_assemblies_dir = packed_path;
+		print_verbose(".NET: Android platform detected. Setting api_assemblies_dir directly to pck path: " + api_assemblies_dir);
+#else
 		if (DirAccess::exists(packed_path)) {
 			// The dotnet publish data is packed in the pck/zip.
 			String data_dir_root = OS::get_singleton()->get_cache_path().path_join("data_" + appname_safe + "_" + platform + "_" + arch);
@@ -214,6 +218,7 @@ private:
 #endif
 			api_assemblies_dir = data_dir_root;
 		}
+#endif // ANDROID_ENABLED
 #endif
 	}