1 /*---------------------------------------------------------------------------* 2 Project: Dolphin 3 File: create-8icon.h 4 5 Copyright 1998, 1999, 2000 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: create-8icon.h,v $ 14 Revision 1.1 01/31/2006 10:48:30 mitu 15 (none) 16 17 18 1 6/19/01 1:26p Hosogai 19 Initial check-in 20 $NoKeywords: $ 21 *---------------------------------------------------------------------------*/ 22 23 /*---------------------------------------------------------------------------* 24 create-8icon 25 A simple program that creates a memory card file with 8 icons 26 *---------------------------------------------------------------------------*/ 27 #ifndef __CREATE8ICON_H__ 28 #define __CREATE8ICON_H__ 29 30 #define CARD_CHAN 1 31 32 #define ICON_RGB5A3_SIZE (2 * CARD_ICON_WIDTH * CARD_ICON_HEIGHT) 33 #define ICON_CI_SIZE (CARD_ICON_WIDTH * CARD_ICON_HEIGHT) 34 #define CLUT_SIZE 512 35 #define FILE_BLOCK_SIZE 3 36 37 /*---------------------------------------------------------------------------* 38 Example memory card data structures 39 *---------------------------------------------------------------------------*/ 40 typedef struct CARDHeaderRGB5A3 41 { 42 u8 Title[CARD_COMMENT_SIZE/2]; 43 u8 Description[CARD_COMMENT_SIZE/2]; 44 u8 Icons[CARD_ICON_MAX][ICON_RGB5A3_SIZE]; 45 } CARDHeaderRGB5A3; 46 47 typedef struct CARDHeaderC8 48 { 49 u8 Title[CARD_COMMENT_SIZE/2]; 50 u8 Description[CARD_COMMENT_SIZE/2]; 51 u8 Icons[CARD_ICON_MAX][ICON_CI_SIZE]; 52 u8 CLUT[CLUT_SIZE]; 53 } CARDHeaderC8; 54 55 #endif 56