mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix sharing violation on config file save in some rare cases
This commit is contained in:
1 parent
7ee43dffd9
commit
541ab9e218
1 file changed
+1
-1
@@ -149,7 +149,7 @@ namespace BepInEx.Configuration
|
||||
string directoryName = Path.GetDirectoryName(ConfigFilePath);
|
||||
if (directoryName != null) Directory.CreateDirectory(directoryName);
|
||||
|
||||
using (var writer = new StreamWriter(File.Create(ConfigFilePath), Encoding.UTF8))
|
||||
using (var writer = new StreamWriter(ConfigFilePath, false, Encoding.UTF8))
|
||||
{
|
||||
if (_ownerMetadata != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user