mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix performance issues
This commit is contained in:
1 parent
0aad00cadc
commit
973667d9bc
1 file changed
+2
-2
@@ -15,12 +15,12 @@ namespace BepInEx.Common
|
||||
/// <summary>
|
||||
/// The directory that the game .exe is being run from.
|
||||
/// </summary>
|
||||
public static string ExecutingDirectory => Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
|
||||
public static string ExecutingDirectory { get; } = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
|
||||
|
||||
/// <summary>
|
||||
/// The path that the plugins folder is located.
|
||||
/// </summary>
|
||||
public static string PluginsDirectory => Path.Combine(ExecutingDirectory, "BepInEx");
|
||||
public static string PluginsDirectory { get; } = Path.Combine(ExecutingDirectory, "BepInEx");
|
||||
|
||||
/// <summary>
|
||||
/// Combines multiple paths together, as the specfic method is not availble in .NET 3.5.
|
||||
|
||||
Reference in new issue
Block a user