From 05b6fa7d52ff5ac51e6c3a468d158af629b06237 Mon Sep 17 00:00:00 2001 From: yosiokat Date: Tue, 15 Jan 2008 04:33:46 +0000 Subject: [PATCH] =?UTF-8?q?HWInfoWriter=20=E3=80=80=E3=83=80=E3=83=9F?= =?UTF-8?q?=E3=83=BC=E3=82=B7=E3=83=AA=E3=82=A2=E3=83=ABNo.=E3=82=92?= =?UTF-8?q?=E3=81=A1=E3=82=83=E3=82=93=E3=81=A8=E6=96=87=E5=AD=97=E5=88=97?= =?UTF-8?q?=E3=81=AB=E3=81=AA=E3=82=8B=E3=82=88=E3=81=86=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E3=80=82=20=E3=80=80region=E3=81=A8serialNo=E3=82=92=E4=B8=8A?= =?UTF-8?q?=E7=94=BB=E9=9D=A2=E3=81=AB=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E5=A4=89=E6=9B=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@461 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- .../HWInfoWriter/ARM9/src/HWInfoWriter.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/build/systemMenu_RED/HWInfoWriter/ARM9/src/HWInfoWriter.c b/build/systemMenu_RED/HWInfoWriter/ARM9/src/HWInfoWriter.c index 0c8d35ab..c850a128 100644 --- a/build/systemMenu_RED/HWInfoWriter/ARM9/src/HWInfoWriter.c +++ b/build/systemMenu_RED/HWInfoWriter/ARM9/src/HWInfoWriter.c @@ -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情報ライター @@ -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(); }