Przeglądaj źródła

Read Managed folder path from Doorstop

ghorsington 5 lat temu
rodzic
commit
363cdd5de1
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      BepInEx/Bootstrap/Chainloader.cs

+ 4 - 2
BepInEx/Bootstrap/Chainloader.cs

@@ -39,13 +39,15 @@ namespace BepInEx.Bootstrap
 		/// <summary>
         /// Initializes BepInEx to be able to start the chainloader.
         /// </summary>
-        public static void Initialize(string containerExePath, bool startConsole = true)
+        public static void Initialize(string containerExePath, string managedPath = null, bool startConsole = true)
 		{
 			if (_initialized)
 				return;
 
 			//Set vitals
-			Paths.SetExecutablePath(containerExePath, pluginPath: ConfigPluginsDirectory.Value);
+			Paths.SetExecutablePath(containerExePath);
+			Paths.SetManagedPath(managedPath);
+			Paths.SetPluginPath(ConfigPluginsDirectory.Value);
 
             //Start logging
             if (ConsoleWindow.ConfigConsoleEnabled.Value && startConsole)