Skip to content

Commit 1d23ad6

Browse files
committed
Fixed error with injected assembly going to the incorrect place
1 parent e194a46 commit 1d23ad6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UniversalUnityHooks/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static void Main(string[] args)
100100
{
101101
Chalker.WriteSuccess($"Injected {(injectedCorrectly == sum ? $"all {sum}" : $"{injectedCorrectly}/{sum}")} methods. {(injectedCorrectly != sum ? "Please read above for more information why some injections may have failed." : "")}");
102102
Chalker.WriteWait("Writing changes to target assembly..");
103-
if (Cecil.WriteChanges(assemblyDefinition, Path.GetFileName(TargetAssembly)))
103+
if (Cecil.WriteChanges(assemblyDefinition, TargetAssembly))
104104
Chalker.WriteSuccess($"Changes have been written to the file {TargetAssembly}!");
105105
}
106106
Console.WriteLine();

0 commit comments

Comments
 (0)