Преглед изворни кода

Open disk log with write-only access
Rebase of 1fa25ed

Bepis пре 4 година
родитељ
комит
0d702ff967
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      BepInEx.Core/Logging/DiskLogListener.cs

+ 1 - 1
BepInEx.Core/Logging/DiskLogListener.cs

@@ -24,7 +24,7 @@ namespace BepInEx.Logging
 
 
 			FileStream fileStream;
 			FileStream fileStream;
 
 
-			while (!Utility.TryOpenFileStream(Path.Combine(Paths.BepInExRootPath, localPath), appendLog ? FileMode.Append : FileMode.Create, out fileStream, share: FileShare.Read))
+			while (!Utility.TryOpenFileStream(Path.Combine(Paths.BepInExRootPath, localPath), appendLog ? FileMode.Append : FileMode.Create, out fileStream, share: FileShare.Read, access: FileAccess.Write))
 			{
 			{
 				if (counter == 5)
 				if (counter == 5)
 				{
 				{