Skip to content
Permalink
Browse files

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

  • Loading branch information
denikson committed Dec 25, 2019
1 parent 07e3099 commit 61a1b071679d1d9c8dc5b874b2fd5710e9e9b4ec
Showing with 1 addition and 1 deletion.
  1. +1 −1 BepInEx.Preloader/Patching/AssemblyPatcher.cs
@@ -231,7 +231,7 @@ public static void PatchAndLoad(string directory)

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;

0 comments on commit 61a1b07

Please sign in to comment.
You can’t perform that action at this time.