From cd878508f573fb3edf42ca4f77047ecfadb818a0 Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 16 Aug 2011 01:49:48 +0000 Subject: [PATCH] disc-tidy --- BizHawk.Emulation/DiscSystem/Disc.API.cs | 12 +++++++++--- BizHawk.Emulation/DiscSystem/DiscTOC.cs | 5 +++++ 2 files changed, 14 insertions(+), 3 deletions(-) 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; } + } }