Class Paths
Paths used by BepInEx
Syntax
public static class Paths
Properties
The directory that the core BepInEx DLLs reside in.
Declaration
public static string BepInExAssemblyDirectory { get; }
Property Value
Type | Description |
---|---|
System.String |
The path to the core BepInEx DLL.
Declaration
public static string BepInExAssemblyPath { get; }
Property Value
Type | Description |
---|---|
System.String |
The path to the global BepInEx configuration file.
Declaration
public static string BepInExConfigPath { get; }
Property Value
Type | Description |
---|---|
System.String |
The path to the main BepInEx folder.
Declaration
public static string BepInExRootPath { get; }
Property Value
Type | Description |
---|---|
System.String |
BepInEx version.
Declaration
public static Version BepInExVersion { get; }
Property Value
Type | Description |
---|---|
Version |
The path to temporary cache files.
Declaration
public static string CachePath { get; }
Property Value
Type | Description |
---|---|
System.String |
The path to the config directory.
Declaration
public static string ConfigPath { get; }
Property Value
Type | Description |
---|---|
System.String |
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[] |
The path of the currently executing program BepInEx is encapsulated in.
Declaration
public static string ExecutablePath { get; }
Property Value
Type | Description |
---|---|
System.String |
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 |
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 |
The path to the Managed folder that contains the main managed assemblies.
Declaration
public static string ManagedPath { get; }
Property Value
Type | Description |
---|---|
System.String |
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 |
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 |
The name of the currently executing process.
Declaration
public static string ProcessName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
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 |