From fa8708f065b495351fa5c08edca19dd1d9a5be5f Mon Sep 17 00:00:00 2001 From: ghorsington Date: Thu, 2 May 2019 21:23:06 +0300 Subject: [PATCH] Change default entrypoint DLL to UnityEngine.CoreModule in v2018 builds --- BepInEx.Preloader/Preloader.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/BepInEx.Preloader/Preloader.cs b/BepInEx.Preloader/Preloader.cs index 911aa9e..bf29dd5 100644 --- a/BepInEx.Preloader/Preloader.cs +++ b/BepInEx.Preloader/Preloader.cs @@ -323,7 +323,12 @@ namespace BepInEx.Preloader "Preloader.Entrypoint", "Assembly", "The local filename of the assembly to target.", - "UnityEngine.dll"); +#if UNITY_2018 + "UnityEngine.CoreModule.dll" +#else + "UnityEngine.dll" +#endif + ); private static readonly ConfigWrapper ConfigEntrypointType = ConfigFile.CoreConfig.Wrap( "Preloader.Entrypoint", @@ -361,6 +366,6 @@ namespace BepInEx.Preloader "If true, console is set to the Shift-JIS encoding, otherwise UTF-8 encoding.", false); - #endregion +#endregion } } \ No newline at end of file