fix missing dispose in LoadSaveRam

fixes 291dd80c27
This commit is contained in:
Morilli 2025-06-05 00:32:30 +02:00
parent 156fb5062b
commit 21e4636eec
1 changed files with 2 additions and 1 deletions

View File

@ -2059,7 +2059,8 @@ namespace BizHawk.Client.EmuHawk
// why do we silently truncate\pad here instead of warning\erroring?
sram = new byte[oldRam.Length];
_ = saveramToLoad.OpenRead().Read(sram, 0, sram.Length);
using var fs = saveramToLoad.OpenRead();
_ = fs.Read(sram, 0, sram.Length);
}
Emulator.AsSaveRam().StoreSaveRam(sram);