diff --git a/BizHawk.Emulation.DiscSystem/CDFS/EndianBitConverter.cs b/BizHawk.Emulation.DiscSystem/CDFS/EndianBitConverter.cs
index 4e1d331794..1816e5c303 100644
--- a/BizHawk.Emulation.DiscSystem/CDFS/EndianBitConverter.cs
+++ b/BizHawk.Emulation.DiscSystem/CDFS/EndianBitConverter.cs
@@ -55,10 +55,10 @@ namespace BizHawk.Emulation.DiscSystem
#region 16-bit
- public Int16 ToInt16(byte[] data) {
+ public short ToInt16(byte[] data) {
return ToInt16(data, 0);
}
- public Int16 ToInt16(byte[] data, int offset) {
+ public short ToInt16(byte[] data, int offset) {
byte[] corrected;
if (swap) {
corrected = (byte[])data.Clone();
@@ -74,10 +74,10 @@ namespace BizHawk.Emulation.DiscSystem
#region 32-bit
- public Int32 ToInt32(byte[] data) {
+ public int ToInt32(byte[] data) {
return ToInt32(data, 0);
}
- public Int32 ToInt32(byte[] data, int offset) {
+ public int ToInt32(byte[] data, int offset) {
byte[] corrected;
if (swap) {
corrected = (byte[])data.Clone();
@@ -93,10 +93,10 @@ namespace BizHawk.Emulation.DiscSystem
#region 64-bit
- public Int64 ToInt64(byte[] data) {
+ public long ToInt64(byte[] data) {
return ToInt64(data, 0);
}
- public Int64 ToInt64(byte[] data, int offset) {
+ public long ToInt64(byte[] data, int offset) {
byte[] corrected;
if (swap) {
corrected = (byte[])data.Clone();
diff --git a/BizHawk.Emulation.DiscSystem/DiscFormats/MDS_Format.cs b/BizHawk.Emulation.DiscSystem/DiscFormats/MDS_Format.cs
index ee48fe9c52..5740dd8239 100644
--- a/BizHawk.Emulation.DiscSystem/DiscFormats/MDS_Format.cs
+++ b/BizHawk.Emulation.DiscSystem/DiscFormats/MDS_Format.cs
@@ -87,22 +87,22 @@ namespace BizHawk.Emulation.DiscSystem
///
/// Burst Cutting Area data offset
///
- public Int64 BCAOffset;
+ public long BCAOffset;
///
/// Offset to disc (DVD?) structures
///
- public Int64 StructureOffset;
+ public long StructureOffset;
///
/// Offset to the first session block
///
- public Int64 SessionOffset;
+ public long SessionOffset;
///
/// Data Position Measurement offset
///
- public Int64 DPMOffset;
+ public long DPMOffset;
///
/// Parse mds stream for the header
@@ -141,7 +141,7 @@ namespace BizHawk.Emulation.DiscSystem
public byte NonTrackBlocks; /* Number of lead-in data blocks */
public int FirstTrack; /* First track in session */
public int LastTrack; /* Last track in session */
- public Int64 TrackOffset; /* Offset of lead-in+regular track data blocks. */
+ public long TrackOffset; /* Offset of lead-in+regular track data blocks. */
}
///
@@ -181,12 +181,12 @@ namespace BizHawk.Emulation.DiscSystem
public int PSec; /* PSec */
public int PFrame; /* PFrame */
- public Int64 ExtraOffset; /* Start offset of this track's extra block. */
+ public long ExtraOffset; /* Start offset of this track's extra block. */
public int SectorSize; /* Sector size. */
- public Int64 PLBA; /* Track start sector (PLBA). */
+ public long PLBA; /* Track start sector (PLBA). */
public ulong StartOffset; /* Track start offset (from beginning of MDS file) */
- public Int64 Files; /* Number of filenames for this track */
- public Int64 FooterOffset; /* Start offset of footer (from beginning of MDS file) */
+ public long Files; /* Number of filenames for this track */
+ public long FooterOffset; /* Start offset of footer (from beginning of MDS file) */
///
/// Track extra block
@@ -212,8 +212,8 @@ namespace BizHawk.Emulation.DiscSystem
///
public class ATrackExtra
{
- public Int64 Pregap; /* Number of sectors in pregap. */
- public Int64 Sectors; /* Number of sectors in track. */
+ public long Pregap; /* Number of sectors in pregap. */
+ public long Sectors; /* Number of sectors in track. */
}
///
@@ -221,8 +221,8 @@ namespace BizHawk.Emulation.DiscSystem
///
public class AFooter
{
- public Int64 FilenameOffset; /* Start offset of image filename string (from beginning of mds file) */
- public Int64 WideChar; /* Seems to be set to 1 if widechar filename is used */
+ public long FilenameOffset; /* Start offset of image filename string (from beginning of mds file) */
+ public long WideChar; /* Seems to be set to 1 if widechar filename is used */
}
///
@@ -389,7 +389,7 @@ namespace BizHawk.Emulation.DiscSystem
// check for track extra block - this can probably be handled in a separate loop,
// but I'll just store the current stream position then seek forward to the extra block for this track
- Int64 currPos = stream.Position;
+ long currPos = stream.Position;
// Only CDs have extra blocks - for DVDs ExtraOffset = track length
if (track.ExtraOffset > 0 && !isDvd)