Changes

Jump to navigation Jump to search
395 bytes added ,  19:41, 13 February 2011
m
[[Image:icon_4.gif]]
[[Image:icon_5.gif]]
 
These are converted by a tool blasty wrote. Icon files were supplied by loopy.
== Basic File Structure ==
|-
| 0x0000
| 21| File Version/Magic Number of titles (should be 0x03015+N)|-| 0x0001| 1| Animated (1=contains animated icon at 0x1240)
|-
| 0x0002
| 2*4
| 4 CRC checksums(polynomial 0xA001)
|-
| 0x000A
| Default Bitmap
|-
| 0x02300x0220
| 32
| Palette for above
|-
| 0x02500x0240| 256*816| Application Title (in 8 languages)Titles, wide chars|-| 0x0A40| 2048| Padding (00's)
|-
| 0x1240
|-
| 0x2340
| 80128
| Animation Sequence
|}
Languages (in correct order) are: Japanese, English, French, German, Italian, Spanish, Unknown?Chinese?, UnknownKorean.
== Animation Sequence ==
|-
| 8
| Frame Duration (in msframes (one frame = 1/60sec))
| 0x00FF
|}
== The Palettes ==
Each color in the palette is in the standard 2-byte RGB555 RGB5551 format (used since GBA).
The conversion to RGB888 is made like this (C):
<source lang="c"> u8 r = ((color ) & 0x1f)<<3; u8 g = ((color >> 5) & 0x1f)<<3; u8 b = ((color >> 10) & 0x1f)<<3; r </source> == Checksums ==The CRC-output is not bitwise inverted after the calculation, but it is byte-swapped to big-endian. Polynomial used is: 0xA001, same for all. {| class= (r << 3) "wikitable"| (r >> 2)- style="background-color: #ddd;"! Number! Range|-| 0| 020-83F|-| 1| 020-93F|- g = (g << 3) | (g >> 2); b = (b << | 020-A3F|-| 3) | 1240-23C0| (b >> 2);}
71

edits

Navigation menu