HWInfoWriter

ダミーシリアルNo.をちゃんと文字列になるよう修正。
 regionとserialNoを上画面に表示するよう変更。


git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@461 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yosiokat 2008-01-15 04:33:46 +00:00
parent c56a446690
commit 05b6fa7d52

View File

@ -54,6 +54,7 @@ static u16 s_csr;
static u8 *s_pPrivKeyBuffer = NULL;
static TSFReadResult (*s_pReadSecureInfoFunc)( void );
static BOOL s_isReadTSD;
static u8 s_region_old;
// const data -----------------------------------------
static const u16 *const s_pStrWriter[ WRITER_ELEMENT_NUM ] = {
@ -106,6 +107,14 @@ static char *strLanguage[] = {
(char *)"LANG_KOREAN",
};
static const char *strRegion[] = {
"JAPAN",
"AMERICA",
"EUROPE",
"AUSTRALIA",
"CHINA",
"KOREA",
};
//======================================================
// HW<48>î•ñƒ‰ƒCƒ^<5E>[
@ -130,7 +139,9 @@ void HWInfoWriterInit( void )
ReadHWInfoFile();
// VerifyHWInfo();
OS_TPrintf( "region = %d\n", THW_GetRegion() );
PrintfSJISSub( 2 * 8, 18 * 8, TXT_COLOR_BLACK, "Region = %s", strRegion[ THW_GetRegion() ] );
PrintfSJISSub( 2 * 8, 20 * 8, TXT_COLOR_BLACK, "SerialNo = %s", THW_GetSerialNoPtr() );
s_region_old = THW_GetRegion();
s_csr = 0;
DrawMenu( s_csr, &s_writerParam );
@ -313,6 +324,10 @@ static void WriteHWInfoFile( u8 region )
DispMessage( 0, 0, TXT_COLOR_NULL, NULL );
NNS_G2dCharCanvasClearArea( &gCanvas, TXT_COLOR_WHITE,
MSG_X * 8 , MSG_Y * 8, ( 32 - MSG_X ) * 8, ( MSG_Y + 4 ) * 8 );
PrintfSJISSub( 2 * 8, 18 * 8, TXT_COLOR_WHITE, "Region = %s", strRegion[ s_region_old ] );
PrintfSJISSub( 2 * 8, 18 * 8, TXT_COLOR_BLACK, "Region = %s", strRegion[ THW_GetRegion() ] );
s_region_old = THW_GetRegion();
}