소스 검색

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

ghorsington 4 년 전
부모
커밋
61a1b07167
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;