Преглед на файлове

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;
 
-			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)
 				{