Jelajahi Sumber

Unify Paths initializers; refactor preloader to unify build into one

ghorsington 5 tahun lalu
induk
melakukan
4206ddb8b5
1 mengubah file dengan 2 tambahan dan 4 penghapusan
  1. 2 4
      BepInEx/Bootstrap/Chainloader.cs

+ 2 - 4
BepInEx/Bootstrap/Chainloader.cs

@@ -39,15 +39,13 @@ namespace BepInEx.Bootstrap
 		/// <summary>
         /// Initializes BepInEx to be able to start the chainloader.
         /// </summary>
-        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)