Fix Seger CD with disk system changes
This commit is contained in:
parent
1f9f712af9
commit
5bae8df811
|
@ -322,7 +322,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
||||||
ret.readcallback = cd_callback_handle = new LibGPGX.cd_read_cb(CDRead);
|
ret.readcallback = cd_callback_handle = new LibGPGX.cd_read_cb(CDRead);
|
||||||
|
|
||||||
var ses = CD.Session1;
|
var ses = CD.Session1;
|
||||||
int ntrack = ses.Tracks.Count;
|
int ntrack = ses.InformationTrackCount;
|
||||||
|
|
||||||
// bet you a dollar this is all wrong
|
// bet you a dollar this is all wrong
|
||||||
//zero 07-jul-2015 - throws a dollar in the pile, since he probably messed it up worse
|
//zero 07-jul-2015 - throws a dollar in the pile, since he probably messed it up worse
|
||||||
|
@ -330,8 +330,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
||||||
{
|
{
|
||||||
if (i < ntrack)
|
if (i < ntrack)
|
||||||
{
|
{
|
||||||
ret.tracks[i].start = ses.Tracks[i].LBA;
|
ret.tracks[i].start = ses.Tracks[i + 1].LBA;
|
||||||
ret.tracks[i].end = ses.Tracks[i + 1].LBA;
|
ret.tracks[i].end = ses.Tracks[i + 2].LBA;
|
||||||
if (i == ntrack - 1)
|
if (i == ntrack - 1)
|
||||||
{
|
{
|
||||||
ret.end = ret.tracks[i].end;
|
ret.end = ret.tracks[i].end;
|
||||||
|
|
Loading…
Reference in New Issue