Browse Source

Utility.ExecutingDirectory performance enhancement.

exdownloader 6 years ago
parent
commit
b4493fd59e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      BepInEx.Common/Utility.cs

+ 1 - 1
BepInEx.Common/Utility.cs

@@ -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.