mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
マスタエディタ:提出書のペアレンタルコントロールの記述を修正。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2517 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
2d717b1a61
commit
923b263d45
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -177,6 +177,85 @@ void Form1::setDeliverableProperties(void)
|
|||||||
{
|
{
|
||||||
this->hDeliv->hBackupMemory = this->tboxBackupOther->Text;
|
this->hDeliv->hBackupMemory = this->tboxBackupOther->Text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SRL情報を文字列で登録
|
||||||
|
if( this->combCERO->SelectedIndex < 0 )
|
||||||
|
{
|
||||||
|
if( this->stripItemJapanese->Checked == true )
|
||||||
|
this->hDeliv->hCERO = gcnew System::String("未定義");
|
||||||
|
else
|
||||||
|
this->hDeliv->hCERO = gcnew System::String("Undefined");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->hDeliv->hCERO = dynamic_cast<System::String^>(this->combCERO->SelectedItem);
|
||||||
|
}
|
||||||
|
if( this->combESRB->SelectedIndex < 0 )
|
||||||
|
{
|
||||||
|
if( this->stripItemJapanese->Checked == true )
|
||||||
|
this->hDeliv->hESRB = gcnew System::String("未定義");
|
||||||
|
else
|
||||||
|
this->hDeliv->hESRB = gcnew System::String("Undefined");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->hDeliv->hESRB = dynamic_cast<System::String^>(this->combESRB->SelectedItem);
|
||||||
|
}
|
||||||
|
if( this->combUSK->SelectedIndex < 0 )
|
||||||
|
{
|
||||||
|
if( this->stripItemJapanese->Checked == true )
|
||||||
|
this->hDeliv->hUSK = gcnew System::String("未定義");
|
||||||
|
else
|
||||||
|
this->hDeliv->hUSK = gcnew System::String("Undefined");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->hDeliv->hUSK = dynamic_cast<System::String^>(this->combUSK->SelectedItem);
|
||||||
|
}
|
||||||
|
if( this->combPEGI->SelectedIndex < 0 )
|
||||||
|
{
|
||||||
|
if( this->stripItemJapanese->Checked == true )
|
||||||
|
this->hDeliv->hPEGI = gcnew System::String("未定義");
|
||||||
|
else
|
||||||
|
this->hDeliv->hPEGI = gcnew System::String("Undefined");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->hDeliv->hPEGI = dynamic_cast<System::String^>(this->combPEGI->SelectedItem);
|
||||||
|
}
|
||||||
|
if( this->combPEGI_PRT->SelectedIndex < 0 )
|
||||||
|
{
|
||||||
|
if( this->stripItemJapanese->Checked == true )
|
||||||
|
this->hDeliv->hPEGI_PRT = gcnew System::String("未定義");
|
||||||
|
else
|
||||||
|
this->hDeliv->hPEGI_PRT = gcnew System::String("Undefined");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->hDeliv->hPEGI_PRT = dynamic_cast<System::String^>(this->combPEGI_PRT->SelectedItem);
|
||||||
|
}
|
||||||
|
if( this->combPEGI_BBFC->SelectedIndex < 0 )
|
||||||
|
{
|
||||||
|
if( this->stripItemJapanese->Checked == true )
|
||||||
|
this->hDeliv->hPEGI_BBFC = gcnew System::String("未定義");
|
||||||
|
else
|
||||||
|
this->hDeliv->hPEGI_BBFC = gcnew System::String("Undefined");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->hDeliv->hPEGI_BBFC = dynamic_cast<System::String^>(this->combPEGI_BBFC->SelectedItem);
|
||||||
|
}
|
||||||
|
if( this->combOFLC->SelectedIndex < 0 )
|
||||||
|
{
|
||||||
|
if( this->stripItemJapanese->Checked == true )
|
||||||
|
this->hDeliv->hOFLC = gcnew System::String("未定義");
|
||||||
|
else
|
||||||
|
this->hDeliv->hOFLC = gcnew System::String("Undefined");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->hDeliv->hOFLC = dynamic_cast<System::String^>(this->combOFLC->SelectedItem);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------
|
// ----------------------------------------------
|
||||||
|
|||||||
@ -491,194 +491,34 @@ ECDeliverableResult RCDeliverable::writeSpreadsheet(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ペアレンタルコントロール
|
// ペアレンタルコントロール
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingCERO" ) )
|
if( node->FirstChild->Value->Equals( "TagRatingCERO" ) )
|
||||||
//{
|
{
|
||||||
// node->FirstChild->Value = hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_CERO ]->ToString();
|
node->FirstChild->Value = this->hCERO;
|
||||||
//}
|
}
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingCEROStr" ) )
|
if( node->FirstChild->Value->Equals( "TagRatingESRB" ) )
|
||||||
//{
|
{
|
||||||
// node->FirstChild->Value = MasterEditorTWL::transRatingToString(
|
node->FirstChild->Value = this->hESRB;
|
||||||
// OS_TWL_PCTL_OGN_CERO,
|
}
|
||||||
// *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_CERO ]),
|
if( node->FirstChild->Value->Equals( "TagRatingUSK" ) )
|
||||||
// *(hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_CERO ]),
|
{
|
||||||
// english );
|
node->FirstChild->Value = this->hUSK;
|
||||||
//}
|
}
|
||||||
//if( node->FirstChild->Value->Equals( "TagEnableCERO" ) )
|
if( node->FirstChild->Value->Equals( "TagRatingPEGI" ) )
|
||||||
//{
|
{
|
||||||
// if( *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_CERO ]) )
|
node->FirstChild->Value = this->hPEGI;
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
}
|
||||||
// else
|
if( node->FirstChild->Value->Equals( "TagRatingPEGI_PRT" ) )
|
||||||
// node->FirstChild->Value = nullptr;
|
{
|
||||||
//}
|
node->FirstChild->Value = this->hPEGI_PRT;
|
||||||
//if( node->FirstChild->Value->Equals( "TagAlwaysCERO" ) )
|
}
|
||||||
//{
|
if( node->FirstChild->Value->Equals( "TagRatingPEGI_BBFC" ) )
|
||||||
// if( *(hSrl->hArrayParentalAlways[ OS_TWL_PCTL_OGN_CERO ]) )
|
{
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
node->FirstChild->Value = this->hPEGI_BBFC;
|
||||||
// else
|
}
|
||||||
// node->FirstChild->Value = nullptr;
|
if( node->FirstChild->Value->Equals( "TagRatingOFLC" ) )
|
||||||
//}
|
{
|
||||||
|
node->FirstChild->Value = this->hOFLC;
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingESRB" ) )
|
}
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_ESRB ]->ToString();
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingESRBStr" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = MasterEditorTWL::transRatingToString(
|
|
||||||
// OS_TWL_PCTL_OGN_ESRB,
|
|
||||||
// *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_ESRB ]),
|
|
||||||
// *(hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_ESRB ]),
|
|
||||||
// english );
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagEnableESRB" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_ESRB ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagAlwaysESRB" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalAlways[ OS_TWL_PCTL_OGN_ESRB ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingUSK" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_USK ]->ToString();
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingUSKStr" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = MasterEditorTWL::transRatingToString(
|
|
||||||
// OS_TWL_PCTL_OGN_USK,
|
|
||||||
// *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_USK ]),
|
|
||||||
// *(hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_USK ]),
|
|
||||||
// english );
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagEnableUSK" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_USK ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagAlwaysUSK" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalAlways[ OS_TWL_PCTL_OGN_USK ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingPEGI" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_PEGI_GEN ]->ToString();
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingPEGIStr" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = MasterEditorTWL::transRatingToString(
|
|
||||||
// OS_TWL_PCTL_OGN_PEGI_GEN,
|
|
||||||
// *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_PEGI_GEN ]),
|
|
||||||
// *(hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_PEGI_GEN ]),
|
|
||||||
// english );
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagEnablePEGI" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_PEGI_GEN ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagAlwaysPEGI" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalAlways[ OS_TWL_PCTL_OGN_PEGI_GEN ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingPEGI_PRT" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_PEGI_PRT ]->ToString();
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingPEGI_PRTStr" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = MasterEditorTWL::transRatingToString(
|
|
||||||
// OS_TWL_PCTL_OGN_PEGI_PRT,
|
|
||||||
// *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_PEGI_PRT ]),
|
|
||||||
// *(hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_PEGI_PRT ]),
|
|
||||||
// english );
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagEnablePEGI_PRT" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_PEGI_PRT ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagAlwaysPEGI_PRT" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalAlways[ OS_TWL_PCTL_OGN_PEGI_PRT ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingPEGI_BBFC" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_PEGI_BBFC ]->ToString();
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingPEGI_BBFCStr" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = MasterEditorTWL::transRatingToString(
|
|
||||||
// OS_TWL_PCTL_OGN_PEGI_BBFC,
|
|
||||||
// *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_PEGI_BBFC ]),
|
|
||||||
// *(hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_PEGI_BBFC ]),
|
|
||||||
// english );
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagEnablePEGI_BBFC" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_PEGI_BBFC ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagAlwaysPEGI_BBFC" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalAlways[ OS_TWL_PCTL_OGN_PEGI_BBFC ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingOFLC" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_OFLC ]->ToString();
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagRatingOFLCStr" ) )
|
|
||||||
//{
|
|
||||||
// node->FirstChild->Value = MasterEditorTWL::transRatingToString(
|
|
||||||
// OS_TWL_PCTL_OGN_OFLC,
|
|
||||||
// *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_OFLC ]),
|
|
||||||
// *(hSrl->hArrayParentalRating[ OS_TWL_PCTL_OGN_OFLC ]),
|
|
||||||
// english );
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagEnableOFLC" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalEnable[ OS_TWL_PCTL_OGN_OFLC ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
//if( node->FirstChild->Value->Equals( "TagAlwaysOFLC" ) )
|
|
||||||
//{
|
|
||||||
// if( *(hSrl->hArrayParentalAlways[ OS_TWL_PCTL_OGN_OFLC ]) )
|
|
||||||
// node->FirstChild->Value = gcnew System::String( "<22>›" );
|
|
||||||
// else
|
|
||||||
// node->FirstChild->Value = nullptr;
|
|
||||||
//}
|
|
||||||
|
|
||||||
// ROM内登録データを1バイトずつ表に書き込む
|
// ROM内登録データを1バイトずつ表に書き込む
|
||||||
if( node->FirstChild->Value->Equals( "TagRomVersionHex" ) )
|
if( node->FirstChild->Value->Equals( "TagRomVersionHex" ) )
|
||||||
|
|||||||
@ -86,6 +86,15 @@ namespace MasterEditorTWL
|
|||||||
// ROMヘッダ不記載のROMバイナリ(SRL)固有情報
|
// ROMヘッダ不記載のROMバイナリ(SRL)固有情報
|
||||||
property System::String ^hBackupMemory; // バックアップメモリの種別
|
property System::String ^hBackupMemory; // バックアップメモリの種別
|
||||||
|
|
||||||
|
// SRL情報の一部を文字列で持っておく
|
||||||
|
property System::String ^hCERO;
|
||||||
|
property System::String ^hESRB;
|
||||||
|
property System::String ^hUSK;
|
||||||
|
property System::String ^hPEGI;
|
||||||
|
property System::String ^hPEGI_PRT;
|
||||||
|
property System::String ^hPEGI_BBFC;
|
||||||
|
property System::String ^hOFLC;
|
||||||
|
|
||||||
// constructor and destructor
|
// constructor and destructor
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@ -518,7 +518,7 @@ void RCSrl::setParentalControlHeader(void)
|
|||||||
}
|
}
|
||||||
else // レーティング年齢を設定
|
else // レーティング年齢を設定
|
||||||
{
|
{
|
||||||
rating = OS_TWL_PCTL_OGNINFO_ALWAYS_MASK | ages[ index ];
|
rating = OS_TWL_PCTL_OGNINFO_ENABLE_MASK | ages[ index ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->pRomHeader->s.parental_control_rating_info[i] = rating;
|
this->pRomHeader->s.parental_control_rating_info[i] = rating;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user