Difference between revisions of "Nintendo DS Cart Whitelist"

From DSiBrew
Jump to navigation Jump to search
(HNHA.bin)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
== Description ==
 
== Description ==
If i remember correctly, HNHA.bin is a file stored in the DSi (NAND fs ?), that contains a list of white listed DS games.
+
The Nintendo DS Cart Whitelist is a system title (HNHA / 0003000f484e4841) that contains a list of whitelisted DS carts. It also exists as a 3DS system title.
  
== Basic HNHA.bin File Structure ==
+
== Basic File Structure ==
 
+
The file consists in one header, a list of titles and a footer.
The file consists in one header (0x88 bytes) and in a list of Titles.
 
  
 
=== Header Structure ===
 
=== Header Structure ===
 +
The header is 136 bytes.
 
{| class="wikitable"
 
{| class="wikitable"
 
|- style="background-color: #ddd;"
 
|- style="background-color: #ddd;"
Line 18: Line 18:
 
|-
 
|-
 
| 0x04
 
| 0x04
 +
| 0x80
 +
| Unknown
 +
|-
 
| 0x84
 
| 0x84
| Unknown
+
| 4
 +
| Number of titles in file
 
|}
 
|}
 
  
 
=== Title Structure ===
 
=== Title Structure ===
 +
A title is 48 bytes.
 
{| class="wikitable"
 
{| class="wikitable"
 
|- style="background-color: #ddd;"
 
|- style="background-color: #ddd;"
Line 32: Line 36:
 
| 0x00
 
| 0x00
 
| 4
 
| 4
| The title ID
+
| ROM serial
 
|-
 
|-
 
| 0x04
 
| 0x04
 
| 4
 
| 4
| The title version
+
| ROM revision
 
|-
 
|-
 
| 0x08
 
| 0x08
Line 44: Line 48:
 
| 0x1C
 
| 0x1C
 
| 20
 
| 20
| The second SHA-1 sum
+
| The second SHA-1 sum (optional)
 +
|}
 +
 
 +
=== Footer Structure ===
 +
The footer is 24 bytes.
 +
{| class="wikitable"
 +
|- style="background-color: #ddd;"
 +
! Start
 +
! Length
 +
! Description
 +
|-
 +
| 0x00
 +
| 24
 +
| Unknown
 
|}
 
|}

Revision as of 18:32, 22 April 2019

Description

The Nintendo DS Cart Whitelist is a system title (HNHA / 0003000f484e4841) that contains a list of whitelisted DS carts. It also exists as a 3DS system title.

Basic File Structure

The file consists in one header, a list of titles and a footer.

Header Structure

The header is 136 bytes.

Start Length Description
0x00 4 An ID (NDHT)
0x04 0x80 Unknown
0x84 4 Number of titles in file

Title Structure

A title is 48 bytes.

Start Length Description
0x00 4 ROM serial
0x04 4 ROM revision
0x08 20 The first SHA-1 sum
0x1C 20 The second SHA-1 sum (optional)

Footer Structure

The footer is 24 bytes.

Start Length Description
0x00 24 Unknown