knah / Il2CppAssemblyUnhollower

A tool to generate Managed->IL2CPP proxy assemblies
GNU Lesser General Public License v3.0
503 stars 87 forks source link

Value cannot be null? #77

Closed Glatrix closed 2 years ago

Glatrix commented 2 years ago

I tried dumping some files with this args in a .bat file AssemblyUnhollower --input=IN\DummyDLL --output=OUT --mscorlib=IN\DummyDLL\mscorlib.dll Everythin ran fine, until the end when the dumber gave this error:

Unhandled Exception: System.ArgumentNullException: Value cannot be null. Parameter name: type at Mono.Cecil.Mixin.CheckType(Object type) at Mono.Cecil.ModuleDefinition.ImportReference(TypeReference type, IGenericParameterProvider context) at AssemblyUnhollower.Passes.Pass60AddImplicitConversions.AddDelegateConversions(RewriteGlobalContext context) at AssemblyUnhollower.Passes.Pass60AddImplicitConversions.DoPass(RewriteGlobalContext context) at AssemblyUnhollower.Program.Main(UnhollowerOptions options) at AssemblyUnhollower.Program.Main(String[] args) Done in 00:00:00.6069457

Glatrix commented 2 years ago

Nm fixed

This is a duplicate of #48.

--mscorlib should point at mod loader mscorlib (or at the very least GAC mscrolib), not dummy dll mscorlib.