|
@@ -15,12 +15,12 @@ namespace BepInEx.Common
|
|
/// <summary>
|
|
/// <summary>
|
|
/// The directory that the game .exe is being run from.
|
|
/// The directory that the game .exe is being run from.
|
|
/// </summary>
|
|
/// </summary>
|
|
- public static string ExecutingDirectory => Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
|
|
|
|
|
|
+ public static string ExecutingDirectory { get; } = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// The path that the plugins folder is located.
|
|
/// The path that the plugins folder is located.
|
|
/// </summary>
|
|
/// </summary>
|
|
- public static string PluginsDirectory => Path.Combine(ExecutingDirectory, "BepInEx");
|
|
|
|
|
|
+ public static string PluginsDirectory { get; } = Path.Combine(ExecutingDirectory, "BepInEx");
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Combines multiple paths together, as the specfic method is not availble in .NET 3.5.
|
|
/// Combines multiple paths together, as the specfic method is not availble in .NET 3.5.
|