Explorar el Código

Fix preloader crash on Unity 2019 if game path has non-ASCII chars

ghorsington hace 4 años
padre
commit
61a1b07167
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      BepInEx.Preloader/Patching/AssemblyPatcher.cs

+ 1 - 1
BepInEx.Preloader/Patching/AssemblyPatcher.cs

@@ -231,7 +231,7 @@ namespace BepInEx.Preloader.Patching
 
 						foreach (var resolvedAss in AppDomain.CurrentDomain.GetAssemblies())
 						{
-							var name = resolvedAss.GetName().Name;
+							var name = new AssemblyName(resolvedAss.FullName).Name;
 							// Report only the first type that caused the assembly to load, because any subsequent ones can be false positives
 							if (!resolvedAssemblies.ContainsKey(name))
 								resolvedAssemblies[name] = assemblyPatcher.TypeName;