Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md - github.com/ClusterM/nes-containers.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 087c456f6378292d7e8b2f7ab8a17ed735b3fa88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# NesContainers
A simple .NET library for working with NES/Famicom ROM containers: .nes (iNES, NES 2.0), .unf (UNIF) and .fds (Famicom Disk System images).

Full documentation: https://clusterm.github.io/nes-containers/

## Usage

There are three classes for different type of containers.

### .nes (iNES, NES 2.0)

Most popular ROM container.

Load ROM: `var nesfile = new NesFile(filename)` or `var nesfile = NesFile.FromFile(filename)`

Access different fields:

`nesfile.Mapper = 4;` // Set mapper

`nesfile.PRG = new byte[32768]; // Set PRG data

`nesfile.CHR = new byte[8192];  // Set CHR data

`nesfile.Battery = true;        // Enable battery saves