Update ProcedureCodeInit.cs

This commit is contained in:
ALEXTANG
2022-10-25 11:11:04 +08:00
parent 54ff5fab41
commit 2e175fbcac

View File

@@ -32,7 +32,7 @@ namespace TEngine.Runtime
// 热更新dll不缺元数据不需要补充如果调用LoadMetadataForAOTAssembly会返回错误 // 热更新dll不缺元数据不需要补充如果调用LoadMetadataForAOTAssembly会返回错误
foreach (var aotDllName in AOTMetaAssemblyNames) foreach (var aotDllName in AOTMetaAssemblyNames)
{ {
byte[] dllBytes = TResources.Load<TextAsset>(aotDllName).bytes; byte[] dllBytes = TResources.Load<TextAsset>(aotDllName)?.bytes;
if (dllBytes == null) if (dllBytes == null)
{ {
Log.Fatal($"{aotDllName} is null"); Log.Fatal($"{aotDllName} is null");