In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

/shared2/sys/NANDBOOTINFO

From WiiBrew
< /shared2‎ | sys
Jump to navigation Jump to search

This file keeps state about what title was most recently launched by the System Menu.

From libogc:

typedef struct {
       u32 checksum;
       u32 argsoff;
       u8 unk1;
       u8 unk2;
       u8 apptype;
       u8 titletype;
       u32 launchcode;
       u32 unknown[2];
       u64 launcher;
       u8 argbuf[0x1000];
} NANDBootInfo;
e.g.
0000000: 440bdae1 00001fe0 00008102 00000001  D...............
0000010: 00000000 00000000 00010001 48414a45  ............HAJE
 0000020: 00000000 00000000 00000000 00000000  ................
*
0001000: 00000001 00001fef 00000000 00000030  ...............0
0001010: 30303130 30303834 38343134 63343500  001000848414c45.

It may also be used to pass something like argv to titles launched from NAND. After clicking on a "buy Wii Fit from Amazon" link inside the Nintendo Channel, the contents of this file were:

0000000: 251f1c1e 00001f18 00008102 00000000  %...............
0000010: 00000000 00000000 00010001 48415445  ............HATE
0000020: 00000000 00000000 00000000 00000000  ................
*
0000f30: 00000000 00000000 00000002 00001f2a  ...............*
0000f40: 00001f3b e7e9e9e9 00003030 30313030  ...;......000100
0000f50: 30313438 34313434 34350068 74747073  0148414445.https
0000f60: 3a2f2f73 65617263 6865722e 7769692e  ://searcher.wii.
0000f70: 636f6d2f 62757969 742f7365 61726368  com/buyit/search
0000f80: 3f6c3d65 6e26633d 55532677 3d303030  ?l=en&c=US&w=000
0000f90: 30383666 63383062 32343835 6426673d  086fc80b2485d&g=
0000fa0: 52464e45 2670663d 30312672 3d555341  RFNE&pf=01&r=USA
0000fb0: 2672743d 45267773 3d31266e 6b733d31  &rt=E&ws=1&nks=1
0000fc0: 2663733d 30266763 3d30266d 733d3026  &cs=0&gc=0&ms=0&
0000fd0: 6e733d30 2677633d 30267766 633d3026  ns=0&wc=0&wfc=0&
0000fe0: 6463733d 30267770 3d302664 6c3d3026  dcs=0&wp=0&dl=0&
0000ff0: 74673d31 26636c3d 456e672b 4672652b  tg=1&cl=Eng+Fre+
0001000: 53706126 623d3032 30302670 3d4e696e  Spa&b=0200&p=Nin
0001010: 74656e64 6f26733d 5769692b 46697400  tendo&s=Wii+Fit.