マスタエディタ:中国版のときレーティングが0x80で埋められていない場合、警告。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@323 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
nishikawa_takeshi 2009-06-26 01:54:27 +00:00
parent cc1b0ca24c
commit 480d284218
6 changed files with 22 additions and 0 deletions

View File

@ -379,6 +379,23 @@ ECSrlResult RCSrl::setRomInfo(void)
{
this->setRatingInfo( region ); // リージョンに含まれる団体のレーティング情報を取得
}
// 中国版に限り全団体のレーティングが全年齢でなければならない
if( region == METWL_MASK_REGION_CHINA )
{
bool all_free = true;
for( i=0; i < PARENTAL_CONTROL_INFO_SIZE; i++ )
{
if( this->pRomHeader->s.parental_control_rating_info[i] != (OS_TWL_PCTL_OGNINFO_ENABLE_MASK | 0) )
{
all_free = false;
}
}
if( !all_free )
{
this->hParentalWarnList->Add( this->makeMrcError("ChinaAllRatingFree") );
}
}
}
return ECSrlResult::NOERROR;

View File

@ -65,6 +65,11 @@
<sentence>中国版のバナー文字として不正な文字セットが使用されています。</sentence>
<begin>0</begin><end>0</end><modify>False</modify><affect>True</affect>
</ChinaBannerCharSet>
<ChinaAllRatingFree>
<name>レーティング(中国版対応)</name>
<sentence>仕向地が中国である場合、すべての団体のレーティングを「全年齢」に設定する必要があります。(マスターROMを作成する際に、マスターエディタによって自動的に設定されますので、ROMを再ビルドする必要はありません。)</sentence>
<begin>2f0</begin><end>2ff</end><modify>True</modify><affect>True</affect>
</ChinaAllRatingFree>
<!-- For DS Station -->
<DSStationTmpJump>