From 1fa776a6e84dde7ae1e819c31f09b250a1779af3 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b08762b0-b915-fc4b-9d8c-17b2551a87ff> Date: Mon, 6 Jul 2009 06:48:33 +0000 Subject: [PATCH] =?UTF-8?q?user=E3=82=A2=E3=83=97=E3=83=AA=E3=81=AE?= =?UTF-8?q?=E3=81=BF=E8=A1=A8=E7=A4=BA=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=81=AB=E4=B8=8D=E5=85=B7=E5=90=88=E3=81=8C=E3=81=82?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?= 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@2868 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/tests/ETicketViewer/src/main.c | 29 +++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/build/tests/ETicketViewer/src/main.c b/build/tests/ETicketViewer/src/main.c index a11c5a9b..752481c9 100644 --- a/build/tests/ETicketViewer/src/main.c +++ b/build/tests/ETicketViewer/src/main.c @@ -164,10 +164,13 @@ void TwlMain(void) MATH_InitRand32( &context, 15 ); #endif - (void) GetETicketData(); - ClearScreen(); - + + PutMainScreen( 7, 12, 0xf6, "--- Now Loading ---"); + PutSubScreen( 7, 12, 0xf6, "--- Now Loading ---"); + + (void) GetETicketData(); + while(TRUE) { // キー入力情報取得 @@ -694,8 +697,21 @@ static void getUserApplication(DataStruct* list) s32 count = 0; DataStruct* p = list; - DataStruct buf[TITLE_NUM_PAGE * 2]; + DataStruct* buf; + u32 buf_size = sizeof(DataStruct) * gNandAllAppNum; + + if( gNandAllAppNum != 0 ) + { + buf = MyNAMUT_Alloc( buf_size ); + + if( buf == NULL ) + { + gErrorFlg = TRUE; + return; + } + } + for( i=0; iid & TITLE_ID_APP_TYPE_MASK)) @@ -706,10 +722,13 @@ static void getUserApplication(DataStruct* list) } // ユーザーアプリだけのリストをコピー - MI_CpuCopy8(buf, list, sizeof(buf)); + MI_CpuCopy8(buf, list, buf_size); // アプリ総数の更新 gNandAllAppNum = count; + + // バッファの開放 + MyNAMUT_Free(buf); } #endif