From 4206ddb8b57bf7d8f50fe4099c62d670435f6ac4 Mon Sep 17 00:00:00 2001 From: ghorsington Date: Sun, 16 Jun 2019 17:20:12 +0300 Subject: [PATCH] Unify Paths initializers; refactor preloader to unify build into one --- BepInEx/Bootstrap/Chainloader.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/BepInEx/Bootstrap/Chainloader.cs b/BepInEx/Bootstrap/Chainloader.cs index c434633..cbaf343 100644 --- a/BepInEx/Bootstrap/Chainloader.cs +++ b/BepInEx/Bootstrap/Chainloader.cs @@ -39,15 +39,13 @@ namespace BepInEx.Bootstrap /// /// Initializes BepInEx to be able to start the chainloader. /// - public static void Initialize(string containerExePath, string managedPath = null, bool startConsole = true) + public static void Initialize(string containerExePath, bool startConsole = true) { if (_initialized) return; //Set vitals - Paths.SetExecutablePath(containerExePath); - Paths.SetManagedPath(managedPath); - Paths.SetPluginPath(ConfigPluginsDirectory.Value); + Paths.SetExecutablePath(containerExePath, pluginPath: ConfigPluginsDirectory.Value); //Start logging if (ConsoleWindow.ConfigConsoleEnabled.Value && startConsole)