diff --git a/BizHawk.Emulation/DiscSystem/Disc.API.cs b/BizHawk.Emulation/DiscSystem/Disc.API.cs index 26c6a50ded..d79edbacf7 100644 --- a/BizHawk.Emulation/DiscSystem/Disc.API.cs +++ b/BizHawk.Emulation/DiscSystem/Disc.API.cs @@ -119,10 +119,16 @@ namespace BizHawk.DiscSystem } /// - /// Main API to determine how many sectors are available on the disc. - /// This counts from absolute sector 0 to the final sector available. + /// Main API to determine how many LBAs are available on the disc. + /// This counts from LBA 0 to the final sector available. /// - public int LBACount { get { return Sectors.Count; } } + public int LBACount { get { return ABACount - 150; } } + + /// + /// Main API to determine how many ABAs (sectors) are available on the disc. + /// This counts from ABA 0 to the final sector available. + /// + public int ABACount { get { return Sectors.Count; } } /// /// indicates whether this disc took significant work to load from the hard drive (i.e. decoding of ECM or audio data) diff --git a/BizHawk.Emulation/DiscSystem/DiscTOC.cs b/BizHawk.Emulation/DiscSystem/DiscTOC.cs index 19612317a0..6e30a4de41 100644 --- a/BizHawk.Emulation/DiscSystem/DiscTOC.cs +++ b/BizHawk.Emulation/DiscSystem/DiscTOC.cs @@ -62,6 +62,11 @@ namespace BizHawk.DiscSystem public int Num; public int ABA, TrackNum, IndexNum; public Track Track; + + public int LBA + { + get { return ABA - 150; } + } }