Update unsafe file write usages

This commit is contained in:
Dean Herbert
2022-05-16 18:03:53 +09:00
parent f78eb0066c
commit 218642c300
12 changed files with 12 additions and 13 deletions

View File

@ -45,7 +45,7 @@ namespace osu.Game.Tournament.Models
public void SaveChanges()
{
using (var stream = configStorage.GetStream(config_path, FileAccess.Write, FileMode.Create))
using (var stream = configStorage.CreateFileSafely(config_path))
using (var sw = new StreamWriter(stream))
{
sw.Write(JsonConvert.SerializeObject(this,