Move SetPlatform to correct place

This commit is contained in:
ghorsington committed 2021-04-11 12:30:03 +03:00
1 parent bccec8940e
commit c5b4c410dd
1 file changed
+2 -2
@@ -39,9 +39,9 @@ namespace BepInEx.Preloader.Unity
public static void PreloaderPreMain()
{
var bepinPath = Utility.ParentDirectory(Path.GetFullPath(EnvVars.DOORSTOP_INVOKE_DLL_PATH), 2);
PlatformUtils.SetPlatform();
var bepinPath = Utility.ParentDirectory(Path.GetFullPath(EnvVars.DOORSTOP_INVOKE_DLL_PATH), 2);
Paths.SetExecutablePath(EnvVars.DOORSTOP_MANAGED_FOLDER_DIR, bepinPath,
EnvVars.DOORSTOP_MANAGED_FOLDER_DIR);