Add missing `leaveOpen: true` in `MainForm.FlushSaveRAM`

fixes f0daba69b
This commit is contained in:
YoshiRulz 2025-05-31 08:59:43 +10:00
parent 8c9f6bd8ce
commit 7ae2f9372d
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 1 deletions

View File

@ -2097,7 +2097,7 @@ namespace BizHawk.Client.EmuHawk
return true;
FileStream fs = new(newPath, FileMode.Create, FileAccess.Write);
using (BinaryWriter writer = new(fs)) writer.Write(saveram);
using (BinaryWriter writer = new(fs, Encoding.UTF8, leaveOpen: true)) writer.Write(saveram);
fs.Flush(flushToDisk: true);
fs.Dispose();