diff --git a/BurnOutSharp.Wrappers/MSDOS.cs b/BurnOutSharp.Wrappers/MSDOS.cs index df6b635b..0f00c261 100644 --- a/BurnOutSharp.Wrappers/MSDOS.cs +++ b/BurnOutSharp.Wrappers/MSDOS.cs @@ -6,13 +6,58 @@ namespace BurnOutSharp.Wrappers { #region Pass-Through Properties - // TODO: Determine what properties can be passed through + #region Header + + /// + public byte[] Magic => _executable.Header.Magic; + + /// + public ushort LastPageBytes => _executable.Header.LastPageBytes; + + /// + public ushort Pages => _executable.Header.Pages; + + /// + public ushort RelocationItems => _executable.Header.RelocationItems; + + /// + public ushort HeaderParagraphSize => _executable.Header.HeaderParagraphSize; + + /// + public ushort MinimumExtraParagraphs => _executable.Header.MinimumExtraParagraphs; + + /// + public ushort MaximumExtraParagraphs => _executable.Header.MaximumExtraParagraphs; + + /// + public ushort InitialSSValue => _executable.Header.InitialSSValue; + + /// + public ushort InitialSPValue => _executable.Header.InitialSPValue; + + /// + public ushort Checksum => _executable.Header.Checksum; + + /// + public ushort InitialIPValue => _executable.Header.InitialIPValue; + + /// + public ushort InitialCSValue => _executable.Header.InitialCSValue; + + /// + public ushort RelocationTableAddr => _executable.Header.RelocationTableAddr; + + /// + public ushort OverlayNumber => _executable.Header.OverlayNumber; #endregion - #region Extension Properties + #region Relocation Table - // TODO: Determine what extension properties are needed + /// + public Models.MSDOS.RelocationEntry[] RelocationTable => _executable.RelocationTable; + + #endregion #endregion @@ -21,7 +66,7 @@ namespace BurnOutSharp.Wrappers /// /// Internal representation of the executable /// - private BurnOutSharp.Models.MSDOS.Executable _executable; + private Models.MSDOS.Executable _executable; #endregion @@ -38,7 +83,7 @@ namespace BurnOutSharp.Wrappers /// An MS-DOS executable wrapper on success, null on failure public static MSDOS Create(byte[] data, int offset) { - var executable = BurnOutSharp.Builder.MSDOS.ParseExecutable(data, offset); + var executable = Builder.MSDOS.ParseExecutable(data, offset); if (executable == null) return null; @@ -53,7 +98,7 @@ namespace BurnOutSharp.Wrappers /// An MS-DOS executable wrapper on success, null on failure public static MSDOS Create(Stream data) { - var executable = BurnOutSharp.Builder.MSDOS.ParseExecutable(data); + var executable = Builder.MSDOS.ParseExecutable(data); if (executable == null) return null;