From 9bef20a74e527769c6a1c418b7a5ca99eb249681 Mon Sep 17 00:00:00 2001 From: Maz Date: Thu, 13 Sep 2018 01:48:47 +1000 Subject: [PATCH] Fixing issue #5 --- IPA/PatchContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPA/PatchContext.cs b/IPA/PatchContext.cs index 21150c2..8e4df88 100644 --- a/IPA/PatchContext.cs +++ b/IPA/PatchContext.cs @@ -49,7 +49,7 @@ namespace IPA context.ProjectName = Path.GetFileNameWithoutExtension(context.Executable); context.DataPathDst = Path.Combine(context.ProjectRoot, context.ProjectName + "_Data"); context.ManagedPath = Path.Combine(context.DataPathDst, "Managed"); - context.EngineFile = Path.Combine(context.ManagedPath, "UnityEngine.dll"); + context.EngineFile = Path.Combine(context.ManagedPath, (File.Exists(Path.Combine(context.ManagedPath, "UnityEngine.CoreModule.dll")) ? "UnityEngine.CoreModule.dll" : "UnityEngine.dll")); context.AssemblyFile = Path.Combine(context.ManagedPath, "Assembly-Csharp.dll"); context.BackupPath = Path.Combine(Path.Combine(context.IPARoot, "Backups"), context.ProjectName); string shortcutName = string.Format("{0} (Patch & Launch)", context.ProjectName);