Utility.ExecutingDirectory performance enhancement.

This commit is contained in:
exdownloader committed 2018-05-29 00:29:09 +01:00
1 parent 0aad00cadc
commit b4493fd59e
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ 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.