mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
userアプリのみ表示バージョンに不具合があったので修正
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2868 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
4076dd558b
commit
1fa776a6e8
@ -164,10 +164,13 @@ void TwlMain(void)
|
|||||||
MATH_InitRand32( &context, 15 );
|
MATH_InitRand32( &context, 15 );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void) GetETicketData();
|
|
||||||
|
|
||||||
ClearScreen();
|
ClearScreen();
|
||||||
|
|
||||||
|
PutMainScreen( 7, 12, 0xf6, "--- Now Loading ---");
|
||||||
|
PutSubScreen( 7, 12, 0xf6, "--- Now Loading ---");
|
||||||
|
|
||||||
|
(void) GetETicketData();
|
||||||
|
|
||||||
while(TRUE)
|
while(TRUE)
|
||||||
{
|
{
|
||||||
// キー入力情報取得
|
// キー入力情報取得
|
||||||
@ -694,8 +697,21 @@ static void getUserApplication(DataStruct* list)
|
|||||||
s32 count = 0;
|
s32 count = 0;
|
||||||
|
|
||||||
DataStruct* p = list;
|
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; i<gNandAllAppNum; i++, p++ )
|
for( i=0; i<gNandAllAppNum; i++, p++ )
|
||||||
{
|
{
|
||||||
if(!(p->id & TITLE_ID_APP_TYPE_MASK))
|
if(!(p->id & 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;
|
gNandAllAppNum = count;
|
||||||
|
|
||||||
|
// バッファの開放
|
||||||
|
MyNAMUT_Free(buf);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user