AM:ReadTwlBackupInfo

AM:ReadTwlBackupInfo

Request #

Index WordDescription
0Header code [0x001E00C8]
1Output Info Size (usually 0x20)
2Banner Size (usually 0x4000)
3Working Buffer Size
40x10 (Magic Word Header, 0x10 = HANDLE_MOVE, we are moving this handle into the IPC server)
5FSFile Handle
6(Output Info Size << 4) | 0xC
7TwlBackupInfo Output Pointer. Processing is skipped for this when the pointer is NULL.
8(Banner Size << 4) | 0xC
9DSiWare Banner Output Pointer. Processing is skipped for this when the pointer is NULL.
10(Working Buffer Size << 4) | 0xC
11Working Buffer Pointer

Response #

Index WordDescription
0Header code
1Result code
2(Output Info Size << 4) | 0xC
3TwlBackupInfo Output Pointer.
4(Banner Size << 4) | 0xC
5DSiWare Banner Output Pointer.
6(Working Buffer Size << 4) | 0xC
7Working Buffer Pointer

Description #

The specified file size must be at least 0x4500. This reads the DSiWare header+banner from the file, and decrypts+verifies these sections.

It should be noted that this command is meant for use with Exports that use 11 content sections.