Class Paths

Paths used by BepInEx

Inheritance
System.Object Paths
Inherited Members
System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx
Assembly: BepInEx.Core.dll
Syntax
public static class Paths

Properties

BepInExAssemblyDirectory

The directory that the core BepInEx DLLs reside in.

Declaration
public static string BepInExAssemblyDirectory { get; }
Property Value
Type Description
System.String

BepInExAssemblyPath

The path to the core BepInEx DLL.

Declaration
public static string BepInExAssemblyPath { get; }
Property Value
Type Description
System.String

BepInExConfigPath

The path to the global BepInEx configuration file.

Declaration
public static string BepInExConfigPath { get; }
Property Value
Type Description
System.String

BepInExRootPath

The path to the main BepInEx folder.

Declaration
public static string BepInExRootPath { get; }
Property Value
Type Description
System.String

BepInExVersion

BepInEx version.

Declaration
public static Version BepInExVersion { get; }
Property Value
Type Description
Version

CachePath

The path to temporary cache files.

Declaration
public static string CachePath { get; }
Property Value
Type Description
System.String

ConfigPath

The path to the config directory.

Declaration
public static string ConfigPath { get; }
Property Value
Type Description
System.String

DllSearchPaths

List of directories from where Mono will search assemblies before assembly resolving is invoked.

Declaration
public static string[] DllSearchPaths { get; }
Property Value
Type Description
System.String[]

ExecutablePath

The path of the currently executing program BepInEx is encapsulated in.

Declaration
public static string ExecutablePath { get; }
Property Value
Type Description
System.String

GameDataPath

The path to the game data folder of the currently running Unity game.

Declaration
public static string GameDataPath { get; }
Property Value
Type Description
System.String

GameRootPath

The directory that the currently executing process resides in.

On OSX however, this is the parent directory of the game.app folder.

Declaration
public static string GameRootPath { get; }
Property Value
Type Description
System.String

ManagedPath

The path to the Managed folder that contains the main managed assemblies.

Declaration
public static string ManagedPath { get; }
Property Value
Type Description
System.String

PatcherPluginPath

The path to the patcher plugin folder which resides in the BepInEx folder.

Declaration
public static string PatcherPluginPath { get; }
Property Value
Type Description
System.String

PluginPath

The path to the plugin folder which resides in the BepInEx folder.

This is ONLY guaranteed to be set correctly when Chainloader has been initialized.

Declaration
public static string PluginPath { get; }
Property Value
Type Description
System.String

ProcessName

The name of the currently executing process.

Declaration
public static string ProcessName { get; }
Property Value
Type Description
System.String

Methods

SetExecutablePath(String, String, String, Boolean, String[])

Declaration
public static void SetExecutablePath(string executablePath, string bepinRootPath = null, string managedPath = null, bool gameDataRelativeToManaged = false, string[] dllSearchPath = null)
Parameters
Type Name Description
System.String executablePath
System.String bepinRootPath
System.String managedPath
System.Boolean gameDataRelativeToManaged
System.String[] dllSearchPath