Fix platform checker placement

This commit is contained in:
ghorsington committed 2021-04-11 12:06:00 +03:00
1 parent bedfa04500
commit bccec8940e
1 file changed
+2 -2
@@ -41,6 +41,8 @@ namespace BepInEx.Preloader.Unity
{
var bepinPath = Utility.ParentDirectory(Path.GetFullPath(EnvVars.DOORSTOP_INVOKE_DLL_PATH), 2);
PlatformUtils.SetPlatform();
Paths.SetExecutablePath(EnvVars.DOORSTOP_MANAGED_FOLDER_DIR, bepinPath,
EnvVars.DOORSTOP_MANAGED_FOLDER_DIR);
AppDomain.CurrentDomain.AssemblyResolve += LocalResolve;
@@ -53,8 +55,6 @@ namespace BepInEx.Preloader.Unity
private static void PreloaderMain()
{
PlatformUtils.SetPlatform();
if (UnityPreloader.ConfigApplyRuntimePatches.Value)
{
XTermFix.Apply();