Changes

1,255 bytes added ,  06:44, 17 April 2015
Line 428: Line 428:     
=NFC module savedata=
 
=NFC module savedata=
* "/nfp_backup.dat" Going by the filename this seems to contain data backed up from amiibo. The filesize is 0x001fbd20-bytes. Certain service cmds will trigger writing to this savedata. This entire file is also read during NFC module / [[amiibo Settings]] startup(unknown if this is done during NFC module startup or via a service cmd).
+
* "/nfp_backup.dat" This contains raw data from the [[Amiibo]] NFC data pages. The filesize is 0x001fbd20-bytes. Certain service cmds will trigger writing to this savedata. This entire file is read during [[amiibo Settings]] startup, it's unknown what command(s) actually triggers that. It seems the Amiibo data here is updated each time the Amiibo NFC data is updated, and read each time the Amiibo NFC data is read.
 +
 
 +
==nfp_backup.dat structure==
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| 0x20
 +
| Header
 +
|-
 +
| 0x20
 +
| 0x800
 +
| Amiibo data table header
 +
|-
 +
| 0x7D20
 +
| 0x21C
 +
| The NFC data for the first stored Amiibo is located here. This is the entire raw data from all 0x87 NFC data pages.
 +
|}
 +
 
 +
===Header structure===
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| 0x8
 +
| Unknown, normally the following data? "00 00 02 00 02 00 00 00" (as little-endian u32s: 0x20000, 0x2)
 +
|-
 +
| 0x8
 +
| 0x14
 +
| Unknown, normally all-zero?
 +
|-
 +
| 0x1C
 +
| 0x4
 +
| Unknown. CRC32 / checksum maybe?
 +
|}
 +
 
 +
===Amiibo data table header===
 +
This is an array with 0x40(?) entries, where the size of each entry is 0x20-bytes. Entry structure:
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| 0x8
 +
| First 8-bytes from [[Amiibo]] NFC serial-number.
 +
|-
 +
| 0x8
 +
| 0x3
 +
| Unknown, normally zero?
 +
|-
 +
| 0xB
 +
| 0x2
 +
| u16 little-endian date value for when this Amiibo was initially written into this savedata, with the same format from [[Amiibo|here]].
 +
|-
 +
| 0xD
 +
| 0xF
 +
| Unknown, normally zero?
 +
|-
 +
| 0x1C
 +
| 0x4
 +
| Unknown. CRC32 / checksum maybe?
 +
|}