NesContainers
|
iNES / NES 2.0 file container for NES/Famicom games More...
Public Member Functions | |
NesFile () | |
Constructor to create empty NesFile object More... | |
NesFile (byte[] data) | |
Create NesFile object from raw .nes file contents More... | |
NesFile (string fileName) | |
Create NesFile object from the specified .nes file More... | |
byte[] | ToBytes () |
Returns .nes file contents (header + PRG + CHR) More... | |
void | Save (string filename) |
Save as .nes file More... | |
byte[] | CalculateMD5 () |
Calculate MD5 checksum of ROM (CHR+PRG without header) More... | |
uint | CalculateCRC32 () |
Calculate CRC32 checksum of ROM (CHR+PRG without header) More... | |
Static Public Member Functions | |
static NesFile | FromBytes (byte[] data) |
Create NesFile object from raw .nes file contents More... | |
static NesFile | FromFile (string filename) |
Create NesFile object from the specified .nes file More... | |
Properties | |
byte[]?? | PRG [get, set] |
PRG data More... | |
byte[]?? | CHR [get, set] |
CHR data More... | |
byte[]?? | Trainer [get, set] |
Trainer More... | |
byte[]?? | MiscellaneousROM [get, set] |
Miscellaneous ROM (NES 2.0 only) More... | |
ushort | Mapper = 0 [get, set] |
Mapper number More... | |
byte | Submapper = 0 [get, set] |
Submapper number (NES 2.0 only) More... | |
bool | Battery = false [get, set] |
Battery-backed (or other non-volatile memory) memory is present More... | |
iNesVersion | Version [get, set] |
Version of .nes file format: iNES or NES 2.0 More... | |
uint??? | PrgRamSize [get, set] |
PRG RAM Size (NES 2.0 only) More... | |
uint??? | PrgNvRamSize [get, set] |
PRG NVRAM Size (NES 2.0 only) More... | |
uint??? | ChrRamSize [get, set] |
CHR RAM Size (NES 2.0 only) More... | |
uint??? | ChrNvRamSize [get, set] |
CHR NVRAM Size (NES 2.0 only) More... | |
MirroringType | Mirroring = MirroringType.Horizontal [get, set] |
Mirroring type More... | |
Timing | Region = Timing.Ntsc [get, set] |
For non-homebrew NES/Famicom games, this field's value is always a function of the region in which a game was released (NES 2.0 only) More... | |
ConsoleType | Console = ConsoleType.Normal [get, set] |
Console type (NES 2.0 only) More... | |
VsPpuType | VsPpu = VsPpuType.RP2C03B [get, set] |
Vs. System PPU type (used when Console is ConsoleType.VsSystem) More... | |
VsHardwareType | VsHardware = VsHardwareType.VsUnisystemNormal [get, set] |
Vs. System hardware type (used when Console is ConsoleType.VsSystem) More... | |
ExtendedConsoleType | ExtendedConsole = ExtendedConsoleType.RegularNES [get, set] |
Extended console type (used when Console is ConsoleType.Extended) More... | |
ExpansionDevice | DefaultExpansionDevice = ExpansionDevice.Unspecified [get, set] |
Default expansion device (NES 2.0 only) More... | |
byte | MiscellaneousROMsCount = 0 [get, set] |
Miscellaneous ROMs сount (NES 2.0 only) More... | |
iNES / NES 2.0 file container for NES/Famicom games
Vs. System PPU type
Vs. System hardware type
Extended console type
Type of expansion device connected to console, source: https://www.nesdev.org/wiki/NES_2.0#Default_Expansion_Device
Enumerator | |
---|---|
Unspecified | Expansion device is not specified |
Standard | Standard NES/Famicom controllers |
NesFourScore | NES Four Score/Satellite with two additional standard controllers |
FamicomFourPlayersAdapter | Famicom Four Players Adapter with two additional standard controllers |
VsSystem | Vs. System |
VsSystemWithReversedInputs | Vs. System with reversed inputs |
VsPinball | Vs. Pinball (Japan) |
VsZapper | Vs. Zapper |
Zapper | Zapper ($4017) |
TwoZappers | Two Zappers |
BandaiHyperShotLightgun | Bandai Hyper Shot Lightgun |
PowerPadSideA | Power Pad Side A |
PowerPadSideB | Power Pad Side B |
FamilyTrainerSideA | Family Trainer Side A |
FamilyTrainerSideB | Family Trainer Side B |
ArkanoidVausControllerNES | Arkanoid Vaus Controller (NES) |
ArkanoidVausControllerFamicom | Arkanoid Vaus Controller (Famicom) |
TwoVausControllersPlusFamicomDataRecorder | Two Vaus Controllers plus Famicom Data Recorder |
KonamiHyperShotController | Konami Hyper Shot Controller |
CoconutsPachinkoController | Coconuts Pachinko Controller |
ExcitingBoxingPunchingBag | Exciting Boxing Punching Bag (Blowup Doll) |
JissenMahjongController | Jissen Mahjong Controller |
PartyTap | Party Tap |
OekaKidsTablet | Oeka Kids Tablet |
SunsoftBarcodeBattler | Sunsoft Barcode Battler |
MiraclePianoKeyboard | Miracle Piano Keyboard |
PokkunMoguraa | Pokkun Moguraa (Whack-a-Mole Mat and Mallet) |
TopRider | Top Rider(Inflatable Bicycle) |
DoubleFisted | Double-Fisted (Requires or allows use of two controllers by one player) |
Famicom3DSystem | Famicom 3D System |
DoremikkoKeyboard | Doremikko Keyboard |
RobGyroSet | R.O.B. Gyro Set |
FamicomDataRecorder | Famicom Data Recorder (don't emulate keyboard) |
ASCIITurboFile | ASCII Turbo File |
IGSStorageBattleBox | IGS Storage Battle Box |
FamilyBasicKeyboardPlusFamicomDataRecorder | Family BASIC Keyboard plus Famicom Data Recorder |
DongdaPEC586Keyboard | Dongda PEC-586 Keyboard |
BitCorpBit79Keyboard | Bit Corp. Bit-79 Keyboard |
SuborKeyboard | Subor Keyboard |
SuborKeyboardPlusMouse3x8 | Subor Keyboard plus mouse (3x8-bit protocol) |
SuborKeyboardPlusMouse24 | Subor Keyboard plus mouse (24-bit protocol) |
SnesMouse4017 | SNES Mouse ($4017.d0) |
Multicart | Multicart |
TwoSnesControllers | Two SNES controllers replacing the two standard NES controllers |
RacerMateBicycle | RacerMate Bicycle |
UForce | U-Force |
RobStackUp | R.O.B. Stack-Up |
CityPatrolmanLightgun | City Patrolman Lightgun |
SharpC1CassetteInterface | Sharp C1 Cassette Interface |
StandardControllerWithSwapped | Standard Controller with swapped Left-Right/Up-Down/B-A |
ExcaliborSudokuPad | Excalibor Sudoku Pad |
AblPinball | ABL Pinball |
GoldenNuggetCasinoExtraButtons | Golden Nugget Casino extra buttons |
|
inline |
Constructor to create empty NesFile object
|
inline |
Create NesFile object from raw .nes file contents
data | Raw .nes file data |
|
inline |
Create NesFile object from the specified .nes file
fileName | Path to the .nes file |
|
static |
|
static |
|
inline |
Returns .nes file contents (header + PRG + CHR)
void com.clusterrr.Famicom.Containers.NesFile.Save | ( | string | filename | ) |
Save as .nes file
filename | Target filename |
|
inline |
Calculate MD5 checksum of ROM (CHR+PRG without header)
|
inline |
Calculate CRC32 checksum of ROM (CHR+PRG without header)
|
getset |
PRG data
|
getset |
CHR data
|
getset |
Trainer
|
getset |
Miscellaneous ROM (NES 2.0 only)
|
getset |
Mapper number
|
getset |
Submapper number (NES 2.0 only)
|
getset |
Battery-backed (or other non-volatile memory) memory is present
|
getset |
Version of .nes file format: iNES or NES 2.0
|
getset |
PRG RAM Size (NES 2.0 only)
|
getset |
PRG NVRAM Size (NES 2.0 only)
|
getset |
CHR RAM Size (NES 2.0 only)
|
getset |
CHR NVRAM Size (NES 2.0 only)
|
getset |
Mirroring type
|
getset |
For non-homebrew NES/Famicom games, this field's value is always a function of the region in which a game was released (NES 2.0 only)
|
getset |
Console type (NES 2.0 only)
|
getset |
Vs. System PPU type (used when Console is ConsoleType.VsSystem)
|
getset |
Vs. System hardware type (used when Console is ConsoleType.VsSystem)
|
getset |
Extended console type (used when Console is ConsoleType.Extended)
|
getset |
Default expansion device (NES 2.0 only)
|
getset |
Miscellaneous ROMs сount (NES 2.0 only)