Fix calculation for disc buffer size needed
This commit is contained in:
parent
55fbf68c8a
commit
979258f2cf
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue