Skip to content

Commit

Permalink
支持加载重复dll
Browse files Browse the repository at this point in the history
  • Loading branch information
526077247 committed Dec 24, 2022
1 parent 928dc3e commit db4e8c4
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions hybridclr/metadata/Assembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,8 @@ namespace metadata

Il2CppAssembly* ass;
Il2CppImage* image2;
if ((ass = FindPlaceHolderAssembly(nameNoExt)) != nullptr)
{
if (ass->token)
{
RaiseExecutionEngineException("reloading placeholder assembly is not supported!");
}
image2 = ass->image;
IL2CPP_FREE((void*)ass->image->name);
IL2CPP_FREE((void*)ass->image->nameNoExt);
}
else
{
ass = new (IL2CPP_MALLOC_ZERO(sizeof(Il2CppAssembly))) Il2CppAssembly;
image2 = new (IL2CPP_MALLOC_ZERO(sizeof(Il2CppImage))) Il2CppImage;
}
ass = new (IL2CPP_MALLOC_ZERO(sizeof(Il2CppAssembly))) Il2CppAssembly;
image2 = new (IL2CPP_MALLOC_ZERO(sizeof(Il2CppImage))) Il2CppImage;

image->InitBasic(image2);
image->BuildIl2CppAssembly(ass);
Expand Down

0 comments on commit db4e8c4

Please # to comment.