mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
NAMUT_SearchInstalledSoftBoxCount を追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@987 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
f3bd7860e2
commit
926b0278d0
@ -451,6 +451,48 @@ static BOOL NAMUTi_FillFile(const char* path)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Name: NAMUT_SearchInstalledSoftBoxCount
|
||||||
|
|
||||||
|
Description: InstalledSoftBoxCountの数を調べて返します。
|
||||||
|
|
||||||
|
Arguments: None
|
||||||
|
|
||||||
|
Returns: None
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
u32 NAMUT_SearchInstalledSoftBoxCount( void )
|
||||||
|
{
|
||||||
|
s32 title_num;
|
||||||
|
NAMTitleInfo namTitleInfo;
|
||||||
|
u32 count = 0;
|
||||||
|
s32 i;
|
||||||
|
|
||||||
|
// タイトルリスト取得
|
||||||
|
if (NAM_GetTitleList(sTitleIdArray, TITLE_LIST_MAX) != NAM_OK)
|
||||||
|
{
|
||||||
|
SDK_ASSERTMSG(0, "Fail! NAM_GetTitleList() in %s\n", __func__);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// タイトル数取得
|
||||||
|
title_num = NAM_GetNumTitles();
|
||||||
|
|
||||||
|
for (i=0;i<title_num;i++)
|
||||||
|
{
|
||||||
|
// タイトル情報取得
|
||||||
|
if( NAM_ReadTitleInfo(&namTitleInfo, sTitleIdArray[i]) == NAM_OK )
|
||||||
|
{
|
||||||
|
// NOT_LAUNCH_FLAG または DATA_ONLY_FLAG が立っているタイトルはカウントしない
|
||||||
|
if (!(namTitleInfo.titleId & (TITLE_ID_NOT_LAUNCH_FLAG_MASK | TITLE_ID_DATA_ONLY_FLAG_MASK)))
|
||||||
|
{
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*
|
/*---------------------------------------------------------------------------*
|
||||||
Name: NAMUT_DrawNandTree
|
Name: NAMUT_DrawNandTree
|
||||||
|
|
||||||
|
|||||||
@ -11,8 +11,8 @@
|
|||||||
in whole or in part, without the prior written consent of Nintendo.
|
in whole or in part, without the prior written consent of Nintendo.
|
||||||
|
|
||||||
$Date:: $
|
$Date:: $
|
||||||
$Rev:$
|
$Rev$
|
||||||
$Author:$
|
$Author$
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef NAM_UTILITY_H_
|
#ifndef NAM_UTILITY_H_
|
||||||
@ -23,8 +23,42 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SDK_ARM9
|
#ifdef SDK_ARM9
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Name: NAMUT_Format
|
||||||
|
|
||||||
|
Description: NANDの擬似フォーマット
|
||||||
|
(システム系の必要なファイルのみを残し他を消去します)
|
||||||
|
|
||||||
|
Arguments: None
|
||||||
|
|
||||||
|
Returns: None
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
BOOL NAMUT_Format(void);
|
BOOL NAMUT_Format(void);
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Name: NAMUT_SearchInstalledSoftBoxCount
|
||||||
|
|
||||||
|
Description: InstalledSoftBoxCountの数を調べて返します。
|
||||||
|
|
||||||
|
Arguments: None
|
||||||
|
|
||||||
|
Returns: None
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
|
u32 NAMUT_SearchInstalledSoftBoxCount( void );
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*
|
||||||
|
Name: NAMUT_DrawNandTree
|
||||||
|
|
||||||
|
Description: NANDのツリー情報をプリント出力します
|
||||||
|
|
||||||
|
Arguments: ...
|
||||||
|
|
||||||
|
Returns: None.
|
||||||
|
*---------------------------------------------------------------------------*/
|
||||||
void NAMUT_DrawNandTree(void);
|
void NAMUT_DrawNandTree(void);
|
||||||
|
|
||||||
|
|
||||||
#endif // SDK_ARM9
|
#endif // SDK_ARM9
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user