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

Difference between revisions of "Opening.bnr"

From WiiBrew
Jump to navigation Jump to search
(LZ77 != encryption)
(Add correct info about archive structure; misc cleanup.)
Line 1: Line 1:
'''opening.bnr''' is a file related to Wii homebrew development.
+
'''opening.bnr''' is a file related to Wii homebrew development. The file is one of the first read by the Wii when a new DVD is inserted, and it is used to display the banner (the channel animation). Even though it shares the name with the file on the GameCube, the content of the file has no resemblence to the GC opening.bnr file.
  
 
==Description==
 
==Description==
It is a normal ARC-file (archive) with an extra header.
+
opening.bnr consists of two parts, a header which is (almost) identical to the latter of part A (starting from Zeroes_1) in content.bin, see [[Content.bin file structure]]. However, the last 16 bytes contains some randomly-looking bytes, most likely an MD5 sum.
  
The ARC-file contains 3 files:
+
After the header follows an [[U8 archive]]. This is an archive consisting of the following structure:
*banner.bin
+
<pre>
*icon.bin
+
/meta
*sound.bin
+
/meta/banner.bin
 +
/meta/icon.bin
 +
/meta/sound.bin
 +
</pre>
  
These .bin-files are compressed using the LZ77 compression, more information on [http://en.wikipedia.org/wiki/LZ77_and_LZ78 Wikipedia].
+
The banner.bin and icon.bin files are LZ77 compressed U8 archives themselves, each with an IMD5 header, containing what looks like an MD5 of the file (though this has not yet been confirmed). sound.bin has an IMD5 header, but is neither LZ77 compressed nor an U8 archive; instead it is of the type "BNS".
  
The extra header is very similar (possibly identical?) to the part A of the content.bin file, starting from (and including) the field Zeroes_1, i.e. the second block of part A.
+
More information on LZ77 compression can be found on [http://en.wikipedia.org/wiki/LZ77_and_LZ78 Wikipedia].
 
 
See [[Content.bin file structure]].
 

Revision as of 01:41, 2 March 2008

opening.bnr is a file related to Wii homebrew development. The file is one of the first read by the Wii when a new DVD is inserted, and it is used to display the banner (the channel animation). Even though it shares the name with the file on the GameCube, the content of the file has no resemblence to the GC opening.bnr file.

Description

opening.bnr consists of two parts, a header which is (almost) identical to the latter of part A (starting from Zeroes_1) in content.bin, see Content.bin file structure. However, the last 16 bytes contains some randomly-looking bytes, most likely an MD5 sum.

After the header follows an U8 archive. This is an archive consisting of the following structure:

/meta
/meta/banner.bin
/meta/icon.bin
/meta/sound.bin

The banner.bin and icon.bin files are LZ77 compressed U8 archives themselves, each with an IMD5 header, containing what looks like an MD5 of the file (though this has not yet been confirmed). sound.bin has an IMD5 header, but is neither LZ77 compressed nor an U8 archive; instead it is of the type "BNS".

More information on LZ77 compression can be found on Wikipedia.