マスタエディタ:ゲームカード領域へのR/Wアクセスを禁止するメッセージを追加。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@334 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
nishikawa_takeshi 2009-06-29 12:46:19 +00:00
parent c0db934da2
commit af36a1c4bb
5 changed files with 66 additions and 21 deletions

View File

@ -609,27 +609,27 @@ void RCSrl::mrcAccessControl(FILE *fp)
} }
if( this->pRomHeader->s.access_control.photo_access_read != 0 ) if( this->pRomHeader->s.access_control.photo_access_read != 0 )
{ {
this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "Photo Database(Read)") ); this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "Photo Database (Read)") );
} }
if( this->pRomHeader->s.access_control.photo_access_write != 0 ) if( this->pRomHeader->s.access_control.photo_access_write != 0 )
{ {
this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "Photo Database(Write)") ); this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "Photo Database (Write)") );
} }
if( this->pRomHeader->s.access_control.sdmc_access_read != 0 ) if( this->pRomHeader->s.access_control.sdmc_access_read != 0 )
{ {
this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "SD Card(Read)") ); this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "SD Card (Read)") );
} }
if( this->pRomHeader->s.access_control.sdmc_access_write != 0 ) if( this->pRomHeader->s.access_control.sdmc_access_write != 0 )
{ {
this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "SD Card(Write)") ); this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "SD Card (Write)") );
} }
if( this->pRomHeader->s.access_control.backup_access_read != 0 ) if( this->pRomHeader->s.access_control.backup_access_read != 0 )
{ {
this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "Card Backup(Read)") ); this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "Game Card (Read)") );
} }
if( this->pRomHeader->s.access_control.backup_access_write != 0 ) if( this->pRomHeader->s.access_control.backup_access_write != 0 )
{ {
this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "Card Backup(Write)") ); this->hWarnList->Add( this->makeMrcError("IllegalAccessSystem", "Game Card (Write)") );
} }
// その他のビット // その他のビット
@ -674,6 +674,14 @@ void RCSrl::mrcAccessControl(FILE *fp)
{ {
this->hErrorList->Add( this->makeMrcError("IllegalAccessUser", "HW AES Slot A for the SSL client certification") ); this->hErrorList->Add( this->makeMrcError("IllegalAccessUser", "HW AES Slot A for the SSL client certification") );
} }
if( this->pRomHeader->s.access_control.backup_access_read != 0 )
{
this->hErrorList->Add( this->makeMrcError("GameCardReadAccessUser") );
}
if( this->pRomHeader->s.access_control.backup_access_write != 0 )
{
this->hErrorList->Add( this->makeMrcError("GameCardWriteAccessUser") );
}
// SDアクセスは 5.2RELEASE で特定のアプリには許可される // SDアクセスは 5.2RELEASE で特定のアプリには許可される
if( !this->IsMediaNand ) if( !this->IsMediaNand )
@ -683,6 +691,14 @@ void RCSrl::mrcAccessControl(FILE *fp)
{ {
this->hErrorList->Add( this->makeMrcError("SDAccessUser") ); this->hErrorList->Add( this->makeMrcError("SDAccessUser") );
} }
if( this->pRomHeader->s.access_control.sdmc_access_read != 0 )
{
this->hErrorList->Add( this->makeMrcError("SDReadAccessUser") );
}
if( this->pRomHeader->s.access_control.sdmc_access_read != 0 )
{
this->hErrorList->Add( this->makeMrcError("SDWriteAccessUser") );
}
} }
else else
{ {
@ -694,6 +710,14 @@ void RCSrl::mrcAccessControl(FILE *fp)
{ {
this->hErrorList->Add( this->makeMrcError("SDAccessUser") ); this->hErrorList->Add( this->makeMrcError("SDAccessUser") );
} }
if( this->pRomHeader->s.access_control.sdmc_access_read != 0 )
{
this->hErrorList->Add( this->makeMrcError("SDReadAccessUser") );
}
if( this->pRomHeader->s.access_control.sdmc_access_read != 0 )
{
this->hErrorList->Add( this->makeMrcError("SDWriteAccessUser") );
}
} }
else else
{ {
@ -738,23 +762,24 @@ void RCSrl::mrcAccessControl(FILE *fp)
{ {
this->hErrorList->Add( this->makeMrcError("JpegSignAccessUserNand") ); this->hErrorList->Add( this->makeMrcError("JpegSignAccessUserNand") );
} }
// photoアクセスするのにTCLライブラリを使用していないとき }
if( (this->pRomHeader->s.access_control.photo_access_read != 0) ||
(this->pRomHeader->s.access_control.photo_access_write != 0) ) // photoアクセスするのにTCLライブラリを使用していないとき
if( (this->pRomHeader->s.access_control.photo_access_read != 0) ||
(this->pRomHeader->s.access_control.photo_access_write != 0) )
{
System::Boolean useTcl = false;
for each( RCLicense ^lic in this->hLicenseList )
{ {
System::Boolean useTcl = false; if( lic->Publisher->StartsWith("NINTENDO") && lic->Name->StartsWith("TCL") )
for each( RCLicense ^lic in this->hLicenseList )
{ {
if( lic->Publisher->StartsWith("NINTENDO") && lic->Name->StartsWith("TCL") ) useTcl = true;
{
useTcl = true;
}
}
if( !useTcl )
{
this->hErrorList->Add( this->makeMrcError("PhotoTclAccessUser") );
} }
} }
if( !useTcl )
{
this->hErrorList->Add( this->makeMrcError("PhotoTclAccessUser") );
}
} }
if( this->pRomHeader->s.access_control.common_client_key_for_debugger_sysmenu != 0 ) if( this->pRomHeader->s.access_control.common_client_key_for_debugger_sysmenu != 0 )

View File

@ -93,7 +93,7 @@
<!-- For Nintendo Zone --> <!-- For Nintendo Zone -->
<ZoneTmpJump> <ZoneTmpJump>
<name>ダウンロードサービス対応</name> <name>ダウンロードサービス対応</name>
<sentence>データ配信用(Nintendo Zone用)のROMでは、tmpジャンプを許可する必要があります。RSFファイルのPermitLandingTmpJumpプロパティを設定してください。</sentence> <sentence>ダウンロードサービス用のROMでは、tmpジャンプを許可する必要があります。RSFファイルのPermitLandingTmpJumpプロパティを設定してください。</sentence>
<begin>1d</begin><end>1d</end><modify>False</modify><affect>True</affect> <begin>1d</begin><end>1d</end><modify>False</modify><affect>True</affect>
</ZoneTmpJump> </ZoneTmpJump>
@ -105,7 +105,7 @@
<ZoneRomSize> <ZoneRomSize>
<name>ダウンロードサービス対応</name> <name>ダウンロードサービス対応</name>
<sentence>データ配信用(Nintendo Zone用)のROMサイズは2.5MByte以下でなければなりません。</sentence> <sentence>ダウンロードサービス用のROMサイズは2.5MByte以下でなければなりません。</sentence>
<begin>0</begin><end>0</end><modify>False</modify><affect>True</affect> <begin>0</begin><end>0</end><modify>False</modify><affect>True</affect>
</ZoneRomSize> </ZoneRomSize>
@ -377,6 +377,16 @@
<sentence>SDカードへのアクセスは許可されていません。</sentence> <sentence>SDカードへのアクセスは許可されていません。</sentence>
<begin>1b4</begin><end>1b7</end><modify>False</modify><affect>True</affect> <begin>1b4</begin><end>1b7</end><modify>False</modify><affect>True</affect>
</SDAccessUser> </SDAccessUser>
<SDReadAccessUser>
<name>SDカードアクセス</name>
<sentence>SDカードへのリードアクセスは許可されていません。</sentence>
<begin>1b4</begin><end>1b7</end><modify>False</modify><affect>True</affect>
</SDReadAccessUser>
<SDWriteAccessUser>
<name>SDカードアクセス</name>
<sentence>SDカードへのライトアクセスは許可されていません。</sentence>
<begin>1b4</begin><end>1b7</end><modify>False</modify><affect>True</affect>
</SDWriteAccessUser>
<SDAccessSystem> <SDAccessSystem>
<name>アクセスコントロール情報</name> <name>アクセスコントロール情報</name>
<sentence>SDカードへアクセス可能になっています。</sentence> <sentence>SDカードへアクセス可能になっています。</sentence>
@ -402,6 +412,16 @@
<sentence>ゲームカードNTR互換領域へアクセス可能になっています。</sentence> <sentence>ゲームカードNTR互換領域へアクセス可能になっています。</sentence>
<begin>1b4</begin><end>1b7</end><modify>False</modify><affect>True</affect> <begin>1b4</begin><end>1b7</end><modify>False</modify><affect>True</affect>
</GameCardNTRAccessSystem> </GameCardNTRAccessSystem>
<GameCardReadAccessUser>
<name>アクセスコントロール情報</name>
<sentence>ゲームカードへのリードアクセスは許可されていません。</sentence>
<begin>1b4</begin><end>1b7</end><modify>False</modify><affect>True</affect>
</GameCardReadAccessUser>
<GameCardWriteAccessUser>
<name>アクセスコントロール情報</name>
<sentence>ゲームカードへのライトアクセスは許可されていません。</sentence>
<begin>1b4</begin><end>1b7</end><modify>False</modify><affect>True</affect>
</GameCardWriteAccessUser>
<PhotoReadAccessUser> <PhotoReadAccessUser>
<name>写真データベースアクセス</name> <name>写真データベースアクセス</name>
<sentence>写真データベースへのリードアクセスは許可されていません。</sentence> <sentence>写真データベースへのリードアクセスは許可されていません。</sentence>