Kaynağa Gözat

Utility.ExecutingDirectory performance enhancement.

exdownloader 6 yıl önce
ebeveyn
işleme
b4493fd59e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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.