mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
フォントの各種データ、無線ファームの各種データを追加。 各バイナリに対してゲームコードの設定を行った。 実行ファイルの種類を更に細分化し、Makefileを条件指定ファイルから自動生成するように修正。 ユーザデータの破壊、リセットに確認を追加。 NANDアプリにはそれぞれ新規バナーを割り当てた。 ハッシュデータの照合において、結果がIncorrectだった場合は文字色を赤で表記するようにした。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2083 b08762b0-b915-fc4b-9d8c-17b2551a87ff
56 lines
1.3 KiB
C
56 lines
1.3 KiB
C
|
|
#include <twl.h>
|
|
#include <twl/os/common/sharedFont.h>
|
|
#include <twl/nam.h>
|
|
|
|
#include "viewSystemInfo.h"
|
|
#include "strResource.h"
|
|
#include "getInformation.h"
|
|
#include "misc.h"
|
|
|
|
void getWirelessVersion( void );
|
|
void getContentsVersion( void );
|
|
void getSharedFontVersion( void );
|
|
|
|
|
|
void getContentsVersion( void )
|
|
// コンテンツリストをもとに各コンテンツのタイトルIDとバージョンを取得
|
|
{
|
|
NAMTitleInfo info;
|
|
int i;
|
|
|
|
gNumContents = NAM_GetNumTitles();
|
|
|
|
if( gNumContents < 0 )
|
|
{
|
|
// NAMが駄目だとか、NANDアクセスできないだとかの場合は終了
|
|
return ;
|
|
}
|
|
|
|
OS_TPrintf(" numContents: %d\n", gNumContents);
|
|
|
|
if( gContentsTitle == NULL )
|
|
{
|
|
// 初回処理の時はバッファを確保
|
|
gContentsTitle = (NAMTitleId*) Alloc( sizeof(NAMTitleId) * gNumContents );
|
|
gContentsVersion = (u16*) Alloc( sizeof(u16) * (u32)gNumContents);
|
|
SDK_ASSERT( gContentsTitle );
|
|
SDK_ASSERT( gContentsVersion );
|
|
}
|
|
|
|
NAM_GetTitleList( gContentsTitle, (u32)gNumContents);
|
|
SDK_POINTER_ASSERT( gContentsTitle );
|
|
SDK_POINTER_ASSERT( gContentsVersion );
|
|
|
|
for( i=0; i<gNumContents; i++ )
|
|
{
|
|
NAM_ReadTitleInfo( &info, gContentsTitle[i] );
|
|
// gContentsTitle[i] = info.titleId;
|
|
gContentsVersion[i] = info.version;
|
|
}
|
|
|
|
s_numMenu[MENU_VERSION] = gNumContents + VERSIONMENU_SIZE;
|
|
}
|
|
|
|
|