Fix calculation for disc buffer size needed

This commit is contained in:
CasualPokePlayer 2024-04-26 14:41:22 -07:00
parent 55fbf68c8a
commit 979258f2cf
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ 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 * (2352 + 96 + 2));
discBufferSize += 1024 - discBufferSize % 1024;
discBufferSize /= 1024;
discBufferSize++;
_elf = new WaterboxHost(new WaterboxOptions
{