Paths Class
Definition
Section titled “Definition”Paths used by BepInEx
public static class Paths
Inheritance object
Properties
Section titled “Properties”BepInExAssemblyDirectory
Section titled “BepInExAssemblyDirectory”The directory that the core BepInEx DLLs reside in.
public static string BepInExAssemblyDirectory { get; }
BepInExAssemblyPath
Section titled “BepInExAssemblyPath”The path to the core BepInEx DLL.
public static string BepInExAssemblyPath { get; }
BepInExRootPath
Section titled “BepInExRootPath”The path to the main BepInEx folder.
public static string BepInExRootPath { get; }
ExecutablePath
Section titled “ExecutablePath”The path of the currently executing program BepInEx is encapsulated in.
public static string ExecutablePath { get; }
GameRootPath
Section titled “GameRootPath”The directory that the currently executing process resides in.
On OSX however, this is the parent directory of the game.app folder.
public static string GameRootPath { get; }
ConfigPath
Section titled “ConfigPath”The path to the config directory.
public static string ConfigPath { get; }
BepInExConfigPath
Section titled “BepInExConfigPath”The path to the global BepInEx configuration file.
public static string BepInExConfigPath { get; }
CachePath
Section titled “CachePath”The path to temporary cache files.
public static string CachePath { get; }
PatcherPluginPath
Section titled “PatcherPluginPath”The path to the patcher plugin folder which resides in the BepInEx folder.
public static string PatcherPluginPath { get; }
PluginPath
Section titled “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.
public static string PluginPath { get; }
ProcessName
Section titled “ProcessName”The name of the currently executing process.
public static string ProcessName { get; }
DllSearchPaths
Section titled “DllSearchPaths”List of directories from where Mono will search assemblies before assembly resolving is invoked.
public static string[] DllSearchPaths { get; }
Methods
Section titled “Methods”SetExecutablePath(string, string, string, bool, string[])
Section titled “SetExecutablePath(string, string, string, bool, string[])”public static void SetExecutablePath(string executablePath, string bepinRootPath = null, string managedPath = null, bool gameDataRelativeToManaged = false, string[] dllSearchPath = null)
Parameters
Section titled “Parameters”executablePath
string
bepinRootPath
string
managedPath
string
gameDataRelativeToManaged
bool
dllSearchPath
string[]