Line 3:
Line 3:
VC games and Wii channels, when saved to a SD card, will be stored in a file named "private/wii/title/XXXX/content.bin", where XXXX is the four-character name of the game/channel.
VC games and Wii channels, when saved to a SD card, will be stored in a file named "private/wii/title/XXXX/content.bin", where XXXX is the four-character name of the game/channel.
−
A program to help parse and analyze the structure of content.bin files, parse-channel.c, is available [http://pastebin.com/f6ea7673f here]. '''Put it in the same directory as a compiled version of segher's Wii tools, since it depends on them.'''
+
A program to help parse and analyze the structure of content.bin files, parse-channel.c ([[parse-channel.c|local]] & [http://pastebin.com/f6ea7673f mirror]). '''Put it in the same directory as a compiled version of [[Segher's Wii.git]] tools, since it depends on them.'''
=== General layout ===
=== General layout ===
Line 178:
Line 178:
This part is is also encrypted by the SD key and SD IV. The precise format of this part has not yet been fully analyzed. It seems to contain code/data for displaying the animated logo/channel preview in the channel selector.
This part is is also encrypted by the SD key and SD IV. The precise format of this part has not yet been fully analyzed. It seems to contain code/data for displaying the animated logo/channel preview in the channel selector.
−
: This part is compressed using a LZ77 like algorithm (just like the Nintendo DS). [http://pastebin.com/f43e9b2cc Here] is a little snippet of code to decompress it (uses XXXX_02_gameinfo.bin files as output by [[User:Magicus|Magicus]] parse-channel.c, downloadable up here). This code is NOT fully functional, because sometimes the algorithm request data not present in the buffer, and fills it with 'X' instead. Maybe someone can fix it, I think it's not difficult ;) [[User:Arcnor|Arcnor]] 21:40, 27 February 2008 (GMT)
+
: This part is compressed using a LZ77 like algorithm (just like the Nintendo DS). Here ([[Content.bin Part B decompresser|local]] & [http://pastebin.com/f43e9b2cc mirror]) is a little snippet of code to decompress it (uses XXXX_02_gameinfo.bin files as output by [[User:Magicus|Magicus]] [[parse-channel.c]], downloadable here). This code is NOT fully functional, because sometimes the algorithm request data not present in the buffer, and fills it with 'X' instead. Maybe someone can fix it, I think it's not difficult ;) [[User:Arcnor|Arcnor]] 21:40, 27 February 2008 (GMT)
===Part C: Cleartext "Bk" header===
===Part C: Cleartext "Bk" header===