Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Switch > System Save > 8000000000000040

This archive is mounted to apprecdb:/ by the ns sysmodule.

The following files can be found in this archive:

All fields are encoded in little-endian byte order.

signature

This file is checked by the ns process to determine whether the other files need to be created. If this file does not exist, or its content is different than expected, the signature, index and kvs files are deleted and recreated by ns.

OffsetSizeDescription
0x08Always 0
0x84Magic number (ARDB)
0xC12Always 0

index

The size of this file is always 0x30010 bytes.

This file contains one entry for every application that is displayed on the home menu, ordered by most recently played. The sequence id is incremented whenever an entry is added or updated. The sequence id of that entry is then set to the incremented value.

OffsetSizeDescription
0x08Sequence id
0x84Number of entries
0xC4Padding (always 0)
0x1024 * 8192Index entries

Every entry is encoded as follows:

OffsetSizeDescription
0x08Title id
0x81Unknown
0x91Flags (see below)
0xA6Padding (always 0)
0x108Sequence id

The following table describes the flag values:

FlagDescription
1?
2?
4Is preomia application
8?

kvs/<title id>.val

Note: The title id is encoded in little-endian byte order. For example, the filename for Super Mario Maker 2 is 00c06d00909b0001.val.

This file contains a content entry for the base game, for the update title, and for DLCs. At most 2048 entries can be stored in a file. Therefore, the maximum file size is 0x208 + 24 * 2048 = 0xC208 bytes.

OffsetSizeDescription
0x04Number of contents (N)
0x44Padding (always 0)
0x84Corruption error code
0xC2Unknown
0xE1Is corrupted
0xF1Unknown
0x896Unknown
0x688Last timestamp at which content was added
0x70408Unknown
0x20824 * NContents

Every content entry is encoded as follows:

OffsetSizeDescription
0x016Content meta key
0x101Unknown
0x117Padding (always 0)

nn::ncm::ContentMetaKey

OffsetSizeDescription
0x08Title id
0x84Title version
0xC1Content meta type
0xD1Content install type
0xE2Padding

nn::ncm::ContentMetaType

ValueDescription
0Invalid
1System program
2System data
3System update
4Boot image package
5Boot image package safe
128Application
129Patch
130Add-on content
131Delta
132Data patch

nn::ncm::ContentInstallType

ValueDescription
0Full
1Fragment only
7Invalid