C# Class NesHd.Core.Memory.NesHeaderReader

显示文件 Open project: afonsof/nes-hd Class Usage Examples

Public Properties

Property Type Description
ChrRomPageCount int
FilePath string
FourScreenVRamLayout bool
MemoryMapper int
PrgRomPageCount int
SRamEnabled bool
SupportedMappersNo int[]
TrainerPresent512 bool
ValidRom bool
VerticalMirroring bool

Public Methods

Method Description
GetMapperName ( ) : string
GetMapperName ( int mapperNo ) : string
NesHeaderReader ( string fileName ) : System.IO

This class used only for reading the header of INES rom format file, so you can use it ONLY for browser, to check the validate of rom and to detected rom info like mapper #. I uses this in browser while reading a rom, 'cause it's faster (it doesn't load any PRG or CHR). IMPORTANT : when you add / update a mapper don't forget to assign it here (in SupportedMappersNo & SupportedMapper()) to make it available.

SupportedMapper ( ) : bool
SupportedMapper ( int mapperNo ) : bool

Method Details

GetMapperName() public method

public GetMapperName ( ) : string
return string

GetMapperName() public static method

public static GetMapperName ( int mapperNo ) : string
mapperNo int
return string

NesHeaderReader() public method

This class used only for reading the header of INES rom format file, so you can use it ONLY for browser, to check the validate of rom and to detected rom info like mapper #. I uses this in browser while reading a rom, 'cause it's faster (it doesn't load any PRG or CHR). IMPORTANT : when you add / update a mapper don't forget to assign it here (in SupportedMappersNo & SupportedMapper()) to make it available.
public NesHeaderReader ( string fileName ) : System.IO
fileName string The rom file to check
return System.IO

SupportedMapper() public method

public SupportedMapper ( ) : bool
return bool

SupportedMapper() public method

public SupportedMapper ( int mapperNo ) : bool
mapperNo int
return bool

Property Details

ChrRomPageCount public_oe property

public int ChrRomPageCount
return int

FilePath public_oe property

public string FilePath
return string

FourScreenVRamLayout public_oe property

public bool FourScreenVRamLayout
return bool

MemoryMapper public_oe property

public int MemoryMapper
return int

PrgRomPageCount public_oe property

public int PrgRomPageCount
return int

SRamEnabled public_oe property

public bool SRamEnabled
return bool

SupportedMappersNo public_oe static_oe property

public static int[] SupportedMappersNo
return int[]

TrainerPresent512 public_oe property

public bool TrainerPresent512
return bool

ValidRom public_oe property

public bool ValidRom
return bool

VerticalMirroring public_oe property

public bool VerticalMirroring
return bool