Better calculation for disc buffer space needed

This commit is contained in:
CasualPokePlayer 2024-04-26 13:53:28 -07:00
parent f1dec3dd07
commit 55fbf68c8a
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
}
// internally, the core caches disc sectors read into the invisible heap
var discBufferSize = lp.Discs.Sum(d => d.DiscData.Session1.LeadoutLBA * 2448 + d.DiscData.Session1.LeadoutLBA);
var discBufferSize = lp.Discs.Sum(d => d.DiscData.Session1.LeadoutLBA * (2352 + 96 + 2));
discBufferSize += 1024 - discBufferSize % 1024;
_elf = new WaterboxHost(new WaterboxOptions