1 /*---------------------------------------------------------------------------*
2   Project: disk banner define names and definition
3   File:    DVDBanner.h
4 
5   Copyright (C) 2001-2006 Nintendo.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Log: DVDBanner.h,v $
14   Revision 1.2  03/10/2006 07:29:35  mitu
15   changed include file from <dolphin/-.h> to <revolution/-.h>.
16 
17   Revision 1.1  02/20/2006 04:07:18  mitu
18   moved from include/dolphin/.
19 
20   Revision 1.1  2006/01/31 08:10:02  ooizumi
21   Definitions for banner file "opening.bnr".
22 
23 
24     2     11/19/01 14:49 Shiki
25     Added DVDBanner2.
26 
27     1     01/04/24 17:36 Shiki
28     Initial check-in.
29   $NoKeywords: $
30  *---------------------------------------------------------------------------*/
31 
32 #ifndef __DVDBANNER_H__
33 #define __DVDBANNER_H__
34 
35 #include <revolution/types.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 // Game banner file must be placed in the root directory
42 #define DVD_BANNER_FILENAME         "opening.bnr"
43 
44 #define DVD_BANNER_WIDTH            96
45 #define DVD_BANNER_HEIGHT           32
46 
47 //
48 // "opening.bnr" file format for JP/US console
49 //
50 typedef struct DVDBanner
51 {
52     u32 id;                 // 'BNR1'
53     u32 padding[7];
54     u8  image[2 * DVD_BANNER_WIDTH * DVD_BANNER_HEIGHT];    // RGB5A3 96x32 texture image
55     u8  shortTitle[32];     // Short game title shown in IPL menu
56     u8  shortMaker[32];     // Short developer, publisher names shown in IPL menu
57     u8  longTitle[64];      // Long game title shown in IPL game start screen
58     u8  longMaker[64];      // Long developer, publisher names shown in IPL game start screen
59     u8  comment[128];       // Game description shown in IPL game start screen in two lines.
60                             // Comment can include a '\n'.
61 } DVDBanner;
62 
63 typedef struct DVDBannerComment
64 {
65     u8  shortTitle[32];     // Short game title shown in IPL menu
66     u8  shortMaker[32];     // Short developer, publisher names shown in IPL menu
67     u8  longTitle[64];      // Long game title shown in IPL game start screen
68     u8  longMaker[64];      // Long developer, publisher names shown in IPL game start screen
69     u8  comment[128];       // Game description shown in IPL game start screen in two lines.
70                             // Comment can include a '\n'.
71 } DVDBannerComment;
72 
73 //
74 // "opening.bnr" file format for EU console
75 //
76 typedef struct DVDBanner2
77 {
78     u32 id;                 // 'BNR2'
79     u32 padding[7];
80     u8  image[2 * DVD_BANNER_WIDTH * DVD_BANNER_HEIGHT];    // RGB5A3 96x32 texture image
81     DVDBannerComment comment[6];    // Comments in six languages
82 } DVDBanner2;
83 
84 // DVDBanner.id
85 #define DVD_BANNER_ID               'BNR1'  // US/JP
86 #define DVD_BANNER_ID2              'BNR2'  // EU
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
92 #endif  // __DVDBANNER_H__
93