From 5bae8df8112cb3d16f21d2ad61c49963113db731 Mon Sep 17 00:00:00 2001 From: nattthebear Date: Fri, 17 Jul 2015 17:20:05 -0400 Subject: [PATCH] Fix Seger CD with disk system changes --- BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs b/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs index 24a6736a70..c0ea57bcfa 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sega/gpgx/GPGX.cs @@ -322,7 +322,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx ret.readcallback = cd_callback_handle = new LibGPGX.cd_read_cb(CDRead); var ses = CD.Session1; - int ntrack = ses.Tracks.Count; + int ntrack = ses.InformationTrackCount; // 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 @@ -330,8 +330,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx { if (i < ntrack) { - ret.tracks[i].start = ses.Tracks[i].LBA; - ret.tracks[i].end = ses.Tracks[i + 1].LBA; + ret.tracks[i].start = ses.Tracks[i + 1].LBA; + ret.tracks[i].end = ses.Tracks[i + 2].LBA; if (i == ntrack - 1) { ret.end = ret.tracks[i].end;