mirror of
https://github.com/rvtr/TwlToolsRED.git
synced 2025-10-31 06:41:18 -04:00
豪州のレーティング団体をAGCBからCOBに変更。ROM情報リストのフォーマットを変更するためにxmlのフォーマットとxsltを更新。ソフトタイトルに幅広の文字が多く含まれているときに表示が途切れる問題を修正。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@506 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
parent
d68c9b839e
commit
0e3c3ee283
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -3284,7 +3284,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
|||||||
this->gridSDK->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(1) {this->dataSDKVer});
|
this->gridSDK->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(1) {this->dataSDKVer});
|
||||||
dataGridViewCellStyle1->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
dataGridViewCellStyle1->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
||||||
dataGridViewCellStyle1->BackColor = System::Drawing::SystemColors::Window;
|
dataGridViewCellStyle1->BackColor = System::Drawing::SystemColors::Window;
|
||||||
dataGridViewCellStyle1->Font = (gcnew System::Drawing::Font(L"Arial", 9));
|
dataGridViewCellStyle1->Font = (gcnew System::Drawing::Font(L"MS Pゴシック", 9));
|
||||||
dataGridViewCellStyle1->ForeColor = System::Drawing::SystemColors::ControlText;
|
dataGridViewCellStyle1->ForeColor = System::Drawing::SystemColors::ControlText;
|
||||||
dataGridViewCellStyle1->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
dataGridViewCellStyle1->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
||||||
dataGridViewCellStyle1->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
dataGridViewCellStyle1->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
||||||
@ -3317,7 +3317,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
|||||||
this->colLibName});
|
this->colLibName});
|
||||||
dataGridViewCellStyle2->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
dataGridViewCellStyle2->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
||||||
dataGridViewCellStyle2->BackColor = System::Drawing::SystemColors::Window;
|
dataGridViewCellStyle2->BackColor = System::Drawing::SystemColors::Window;
|
||||||
dataGridViewCellStyle2->Font = (gcnew System::Drawing::Font(L"Arial", 9));
|
dataGridViewCellStyle2->Font = (gcnew System::Drawing::Font(L"MS Pゴシック", 9));
|
||||||
dataGridViewCellStyle2->ForeColor = System::Drawing::SystemColors::ControlText;
|
dataGridViewCellStyle2->ForeColor = System::Drawing::SystemColors::ControlText;
|
||||||
dataGridViewCellStyle2->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
dataGridViewCellStyle2->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
||||||
dataGridViewCellStyle2->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
dataGridViewCellStyle2->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
||||||
@ -4223,7 +4223,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
|||||||
this->colWarnBegin, this->colWarnEnd, this->colWarnCause});
|
this->colWarnBegin, this->colWarnEnd, this->colWarnCause});
|
||||||
dataGridViewCellStyle3->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
dataGridViewCellStyle3->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
||||||
dataGridViewCellStyle3->BackColor = System::Drawing::SystemColors::Window;
|
dataGridViewCellStyle3->BackColor = System::Drawing::SystemColors::Window;
|
||||||
dataGridViewCellStyle3->Font = (gcnew System::Drawing::Font(L"Arial", 9));
|
dataGridViewCellStyle3->Font = (gcnew System::Drawing::Font(L"MS Pゴシック", 9));
|
||||||
dataGridViewCellStyle3->ForeColor = System::Drawing::SystemColors::ControlText;
|
dataGridViewCellStyle3->ForeColor = System::Drawing::SystemColors::ControlText;
|
||||||
dataGridViewCellStyle3->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
dataGridViewCellStyle3->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
||||||
dataGridViewCellStyle3->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
dataGridViewCellStyle3->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
||||||
@ -4276,7 +4276,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
|||||||
this->colErrorBegin, this->colErrorEnd, this->colErrorCause});
|
this->colErrorBegin, this->colErrorEnd, this->colErrorCause});
|
||||||
dataGridViewCellStyle5->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
dataGridViewCellStyle5->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
||||||
dataGridViewCellStyle5->BackColor = System::Drawing::SystemColors::Window;
|
dataGridViewCellStyle5->BackColor = System::Drawing::SystemColors::Window;
|
||||||
dataGridViewCellStyle5->Font = (gcnew System::Drawing::Font(L"Arial", 9));
|
dataGridViewCellStyle5->Font = (gcnew System::Drawing::Font(L"MS Pゴシック", 9));
|
||||||
dataGridViewCellStyle5->ForeColor = System::Drawing::SystemColors::ControlText;
|
dataGridViewCellStyle5->ForeColor = System::Drawing::SystemColors::ControlText;
|
||||||
dataGridViewCellStyle5->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
dataGridViewCellStyle5->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
||||||
dataGridViewCellStyle5->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
dataGridViewCellStyle5->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
||||||
@ -4486,7 +4486,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
|||||||
System::Xml::XmlElement^ makeGameInfoXmlElement(System::Xml::XmlDocument^ doc);
|
System::Xml::XmlElement^ makeGameInfoXmlElement(System::Xml::XmlDocument^ doc);
|
||||||
|
|
||||||
// XML形式のリストの本体となるミドルウェアリストの作成(他でも使うので独立させる)
|
// XML形式のリストの本体となるミドルウェアリストの作成(他でも使うので独立させる)
|
||||||
System::Xml::XmlElement^ makeMiddlewareListXmlElement(System::Xml::XmlDocument^ doc);
|
System::Xml::XmlElement^ makeMiddlewareListXmlElement(System::Xml::XmlDocument^ doc, bool isCount);
|
||||||
|
|
||||||
// XML形式のリストを作成
|
// XML形式のリストを作成
|
||||||
System::Void makeMiddlewareListXml(System::Xml::XmlDocument^ doc);
|
System::Void makeMiddlewareListXml(System::Xml::XmlDocument^ doc);
|
||||||
@ -4510,6 +4510,10 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
|||||||
System::Xml::XmlElement^ makeWarningListXmlElement(System::Xml::XmlDocument ^doc, System::Boolean isCurrent);
|
System::Xml::XmlElement^ makeWarningListXmlElement(System::Xml::XmlDocument ^doc, System::Boolean isCurrent);
|
||||||
System::Xml::XmlElement^ makeErrorListCaptionXmlElement(System::Xml::XmlDocument ^doc);
|
System::Xml::XmlElement^ makeErrorListCaptionXmlElement(System::Xml::XmlDocument ^doc);
|
||||||
|
|
||||||
|
// XML形式のエラーリストの要素数のカウント
|
||||||
|
int countErrorListXmlElement( System::Boolean isCurrent );
|
||||||
|
int countWarningListXmlElement( System::Boolean isCurrent );
|
||||||
|
|
||||||
// XML形式のリストを作成
|
// XML形式のリストを作成
|
||||||
System::Void makeErrorListXml(System::Xml::XmlDocument^ doc, System::Boolean isCurrent);
|
System::Void makeErrorListXml(System::Xml::XmlDocument^ doc, System::Boolean isCurrent);
|
||||||
|
|
||||||
|
|||||||
@ -209,7 +209,7 @@
|
|||||||
<value>リマスターバージョン</value>
|
<value>リマスターバージョン</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="tboxTitleName.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="tboxTitleName.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>100, 19</value>
|
<value>145, 19</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="gboxSrl.Text" xml:space="preserve">
|
<data name="gboxSrl.Text" xml:space="preserve">
|
||||||
<value>ROMデータ情報</value>
|
<value>ROMデータ情報</value>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,8 @@ using namespace System::Data;
|
|||||||
using namespace System::Drawing;
|
using namespace System::Drawing;
|
||||||
using namespace MasterEditorTWL;
|
using namespace MasterEditorTWL;
|
||||||
|
|
||||||
|
static int s_NodeCount = 0;
|
||||||
|
|
||||||
// ======================================================
|
// ======================================================
|
||||||
// XMLの一要素を作成
|
// XMLの一要素を作成
|
||||||
// ======================================================
|
// ======================================================
|
||||||
@ -20,6 +22,7 @@ static System::Xml::XmlElement^ CreateErrorListElement(System::Xml::XmlDocument
|
|||||||
System::String ^tagname, System::Boolean isJapanese)
|
System::String ^tagname, System::Boolean isJapanese)
|
||||||
{
|
{
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement(tagname);
|
System::Xml::XmlElement ^tag = doc->CreateElement(tagname);
|
||||||
|
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
|
||||||
MasterEditorTWL::appendXmlTag( doc, tag, "errname", (isJapanese)?err->Name:err->NameE );
|
MasterEditorTWL::appendXmlTag( doc, tag, "errname", (isJapanese)?err->Name:err->NameE );
|
||||||
MasterEditorTWL::appendXmlTag( doc, tag, "errtype", errtype.ToString() );
|
MasterEditorTWL::appendXmlTag( doc, tag, "errtype", errtype.ToString() );
|
||||||
MasterEditorTWL::appendXmlTag( doc, tag, "errbegin", err->Begin.ToString("X04")+"h" );
|
MasterEditorTWL::appendXmlTag( doc, tag, "errbegin", err->Begin.ToString("X04")+"h" );
|
||||||
@ -33,6 +36,8 @@ static System::Xml::XmlElement^ CreateErrorListElement(System::Xml::XmlDocument
|
|||||||
// ======================================================
|
// ======================================================
|
||||||
System::Xml::XmlElement^ Form1::makeErrorListXmlElement(System::Xml::XmlDocument ^doc, System::Boolean isCurrent)
|
System::Xml::XmlElement^ Form1::makeErrorListXmlElement(System::Xml::XmlDocument ^doc, System::Boolean isCurrent)
|
||||||
{
|
{
|
||||||
|
s_NodeCount = 0;
|
||||||
|
|
||||||
// エラーリスト
|
// エラーリスト
|
||||||
System::Xml::XmlElement ^list = doc->CreateElement( "error-list" );
|
System::Xml::XmlElement ^list = doc->CreateElement( "error-list" );
|
||||||
if( isCurrent ) // 現在の入力を反映
|
if( isCurrent ) // 現在の入力を反映
|
||||||
@ -81,6 +86,8 @@ System::Xml::XmlElement^ Form1::makeErrorListXmlElement(System::Xml::XmlDocument
|
|||||||
|
|
||||||
System::Xml::XmlElement^ Form1::makeWarningListXmlElement(System::Xml::XmlDocument ^doc, System::Boolean isCurrent)
|
System::Xml::XmlElement^ Form1::makeWarningListXmlElement(System::Xml::XmlDocument ^doc, System::Boolean isCurrent)
|
||||||
{
|
{
|
||||||
|
s_NodeCount = 0;
|
||||||
|
|
||||||
// 警告リスト
|
// 警告リスト
|
||||||
System::Xml::XmlElement ^list = doc->CreateElement( "warning-list" );
|
System::Xml::XmlElement ^list = doc->CreateElement( "warning-list" );
|
||||||
if( isCurrent ) // 現在の入力を反映
|
if( isCurrent ) // 現在の入力を反映
|
||||||
@ -155,6 +162,112 @@ System::Xml::XmlElement^ Form1::makeErrorListCaptionXmlElement(System::Xml::XmlD
|
|||||||
} //System::Xml::XmlElement^ Form1::makeErrorListCaptionXmlElement
|
} //System::Xml::XmlElement^ Form1::makeErrorListCaptionXmlElement
|
||||||
|
|
||||||
|
|
||||||
|
// ======================================================
|
||||||
|
// XML形式のリストに載せるエラー数のカウント
|
||||||
|
// ======================================================
|
||||||
|
int Form1::countErrorListXmlElement(System::Boolean isCurrent)
|
||||||
|
{
|
||||||
|
s_NodeCount = 0;
|
||||||
|
|
||||||
|
int count = 0;
|
||||||
|
|
||||||
|
// エラーリスト
|
||||||
|
if( isCurrent ) // 現在の入力を反映
|
||||||
|
{
|
||||||
|
if( this->hSrl->hErrorList != nullptr ) // ROM読み込み時に発見されたエラー
|
||||||
|
{
|
||||||
|
for each( RCMrcError ^err in this->hSrl->hErrorList )
|
||||||
|
{
|
||||||
|
if( !err->IsEnableModify && this->isDisplayOneGridErrorForPurpose( err ) ) // 修正可能な情報は出力しない
|
||||||
|
{
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if( this->hErrorList != nullptr ) // 現在のフォーム入力から発見されたエラー
|
||||||
|
{
|
||||||
|
for each( RCMrcError ^err in this->hErrorList )
|
||||||
|
{
|
||||||
|
if( err->IsAffectRom && this->isDisplayOneGridErrorForPurpose( err ) ) // 書類上のエラーは出力しない
|
||||||
|
{
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else // ROM読み込み時の情報
|
||||||
|
{
|
||||||
|
if( this->hSrl->hErrorList )
|
||||||
|
{
|
||||||
|
for each( RCMrcError ^err in this->hSrl->hErrorList )
|
||||||
|
{
|
||||||
|
int errtype = 0; // 修正可能な情報と不可能な情報とでタイプを分ける
|
||||||
|
if( err->IsEnableModify )
|
||||||
|
{
|
||||||
|
errtype = 1;
|
||||||
|
}
|
||||||
|
if( this->isDisplayOneGridErrorForPurpose( err ) )
|
||||||
|
{
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return count;
|
||||||
|
}//int Form1::countErrorListXmlElement
|
||||||
|
|
||||||
|
int Form1::countWarningListXmlElement(System::Boolean isCurrent)
|
||||||
|
{
|
||||||
|
s_NodeCount = 0;
|
||||||
|
|
||||||
|
int count = 0;
|
||||||
|
|
||||||
|
// 警告リスト
|
||||||
|
if( isCurrent ) // 現在の入力を反映
|
||||||
|
{
|
||||||
|
if( this->hSrl->hWarnList != nullptr ) // ROM読み込み時に発見されたエラー
|
||||||
|
{
|
||||||
|
for each( RCMrcError ^err in this->hSrl->hWarnList )
|
||||||
|
{
|
||||||
|
if( !err->IsEnableModify && this->isDisplayOneGridErrorForPurpose( err ) ) // 修正可能な情報は出力しない
|
||||||
|
{
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if( this->hWarnList != nullptr ) // 現在のフォーム入力から発見されたエラー
|
||||||
|
{
|
||||||
|
for each( RCMrcError ^err in this->hWarnList )
|
||||||
|
{
|
||||||
|
if( err->IsAffectRom && this->isDisplayOneGridErrorForPurpose( err ) ) // 書類上のエラーは出力しない
|
||||||
|
{
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else // ROM読み込み時の情報
|
||||||
|
{
|
||||||
|
if( this->hSrl->hWarnList )
|
||||||
|
{
|
||||||
|
for each( RCMrcError ^err in this->hSrl->hWarnList )
|
||||||
|
{
|
||||||
|
int errtype = 0; // 修正可能な情報と不可能な情報とでタイプを分ける
|
||||||
|
if( err->IsEnableModify )
|
||||||
|
{
|
||||||
|
errtype = 1;
|
||||||
|
}
|
||||||
|
if( this->isDisplayOneGridErrorForPurpose( err ) )
|
||||||
|
{
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return count;
|
||||||
|
} //int Form1::countWarningListXmlElement
|
||||||
|
|
||||||
|
|
||||||
// ======================================================
|
// ======================================================
|
||||||
// XML形式でリストを作成
|
// XML形式でリストを作成
|
||||||
// ======================================================
|
// ======================================================
|
||||||
@ -174,11 +287,54 @@ System::Void Form1::makeErrorListXml(System::Xml::XmlDocument ^doc, System::Bool
|
|||||||
// ゲーム情報
|
// ゲーム情報
|
||||||
root->AppendChild( this->makeGameInfoXmlElement(doc) );
|
root->AppendChild( this->makeGameInfoXmlElement(doc) );
|
||||||
|
|
||||||
|
// ファイルパス
|
||||||
|
MasterEditorTWL::appendXmlTag( doc, root, "path", this->tboxFile->Text );
|
||||||
|
|
||||||
|
// 作成日時
|
||||||
|
System::Xml::XmlElement ^time = doc->CreateElement( "time-info" );
|
||||||
|
System::DateTime ^ datetime = System::DateTime::Now;
|
||||||
|
time->SetAttribute( "year", datetime->Year.ToString() );
|
||||||
|
switch( datetime->Month )
|
||||||
|
{
|
||||||
|
case 1: time->SetAttribute( "month", "January" ); break;
|
||||||
|
case 2: time->SetAttribute( "month", "February" ); break;
|
||||||
|
case 3: time->SetAttribute( "month", "March" ); break;
|
||||||
|
case 4: time->SetAttribute( "month", "April" ); break;
|
||||||
|
case 5: time->SetAttribute( "month", "May" ); break;
|
||||||
|
case 6: time->SetAttribute( "month", "June" ); break;
|
||||||
|
case 7: time->SetAttribute( "month", "July" ); break;
|
||||||
|
case 8: time->SetAttribute( "month", "August" ); break;
|
||||||
|
case 9: time->SetAttribute( "month", "September" ); break;
|
||||||
|
case 10: time->SetAttribute( "month", "October" ); break;
|
||||||
|
case 11: time->SetAttribute( "month", "November" ); break;
|
||||||
|
case 12: time->SetAttribute( "month", "December" ); break;
|
||||||
|
default: time->SetAttribute( "month", datetime->Month.ToString() ); break;
|
||||||
|
}
|
||||||
|
time->SetAttribute( "day", datetime->Day.ToString() );
|
||||||
|
time->SetAttribute( "time", datetime->Hour.ToString("D2") + ":" + datetime->Minute.ToString("D2") );
|
||||||
|
root->AppendChild( time );
|
||||||
|
|
||||||
|
System::Xml::XmlElement ^section;
|
||||||
|
|
||||||
// エラー情報
|
// エラー情報
|
||||||
root->AppendChild( this->makeErrorListXmlElement(doc, isCurrent) );
|
section = doc->CreateElement("error-info");
|
||||||
|
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"エラー":"Error" );
|
||||||
|
section->AppendChild( this->makeErrorListXmlElement(doc, isCurrent) );
|
||||||
|
root->AppendChild(section);
|
||||||
|
|
||||||
// 警告情報
|
// 警告情報
|
||||||
root->AppendChild( this->makeWarningListXmlElement(doc, isCurrent) );
|
section = doc->CreateElement("warning-info");
|
||||||
|
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"警告":"Warning" );
|
||||||
|
section->AppendChild( this->makeWarningListXmlElement(doc, isCurrent) );
|
||||||
|
root->AppendChild(section);
|
||||||
|
|
||||||
|
// エラー数
|
||||||
|
section = doc->CreateElement("error-num-info");
|
||||||
|
section->SetAttribute( "error-title", this->isJapanese()?"エラー":"Error" );
|
||||||
|
section->SetAttribute( "error-num", this->countErrorListXmlElement( isCurrent ).ToString() );
|
||||||
|
section->SetAttribute( "warning-title", this->isJapanese()?"警告":"Warning" );
|
||||||
|
section->SetAttribute( "warning-num", this->countWarningListXmlElement( isCurrent ).ToString() );
|
||||||
|
root->AppendChild(section);
|
||||||
|
|
||||||
// 追記
|
// 追記
|
||||||
root->AppendChild( this->makeErrorListCaptionXmlElement(doc) );
|
root->AppendChild( this->makeErrorListCaptionXmlElement(doc) );
|
||||||
|
|||||||
@ -46,14 +46,20 @@ System::Xml::XmlElement^ Form1::makeGameInfoXmlElement(System::Xml::XmlDocument
|
|||||||
// ----------------------------------------------
|
// ----------------------------------------------
|
||||||
// XML形式のリストの本体となるミドルウェアリストの作成(他でも使うので独立させる)
|
// XML形式のリストの本体となるミドルウェアリストの作成(他でも使うので独立させる)
|
||||||
// ----------------------------------------------
|
// ----------------------------------------------
|
||||||
System::Xml::XmlElement^ Form1::makeMiddlewareListXmlElement(System::Xml::XmlDocument ^doc)
|
System::Xml::XmlElement^ Form1::makeMiddlewareListXmlElement(System::Xml::XmlDocument ^doc, bool isCount)
|
||||||
{
|
{
|
||||||
|
int NodeCount = 0;
|
||||||
|
|
||||||
System::Xml::XmlElement ^midlist = doc->CreateElement( "middleware-list" );
|
System::Xml::XmlElement ^midlist = doc->CreateElement( "middleware-list" );
|
||||||
if( this->hSrl->hLicenseList != nullptr )
|
if( this->hSrl->hLicenseList != nullptr )
|
||||||
{
|
{
|
||||||
for each( RCLicense ^lic in this->hSrl->hLicenseList )
|
for each( RCLicense ^lic in this->hSrl->hLicenseList )
|
||||||
{
|
{
|
||||||
System::Xml::XmlElement ^mid = doc->CreateElement( "middleware" );
|
System::Xml::XmlElement ^mid = doc->CreateElement( "middleware" );
|
||||||
|
if( isCount )
|
||||||
|
{
|
||||||
|
mid->SetAttribute( "num", ( NodeCount++ ).ToString() );
|
||||||
|
}
|
||||||
MasterEditorTWL::appendXmlTag( doc, mid, "publisher", lic->Publisher );
|
MasterEditorTWL::appendXmlTag( doc, mid, "publisher", lic->Publisher );
|
||||||
MasterEditorTWL::appendXmlTag( doc, mid, "name", lic->Name );
|
MasterEditorTWL::appendXmlTag( doc, mid, "name", lic->Name );
|
||||||
System::String ^note = "";
|
System::String ^note = "";
|
||||||
@ -90,7 +96,7 @@ System::Void Form1::makeMiddlewareListXml(System::Xml::XmlDocument^ doc)
|
|||||||
root->AppendChild( this->makeGameInfoXmlElement(doc) );
|
root->AppendChild( this->makeGameInfoXmlElement(doc) );
|
||||||
|
|
||||||
// ミドルウェアリスト
|
// ミドルウェアリスト
|
||||||
root->AppendChild( this->makeMiddlewareListXmlElement(doc) );
|
root->AppendChild( this->makeMiddlewareListXmlElement(doc, false) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------
|
// ----------------------------------------------
|
||||||
|
|||||||
@ -13,6 +13,8 @@ using namespace System::Data;
|
|||||||
using namespace System::Drawing;
|
using namespace System::Drawing;
|
||||||
using namespace MasterEditorTWL;
|
using namespace MasterEditorTWL;
|
||||||
|
|
||||||
|
static int s_NodeCount = 0;
|
||||||
|
|
||||||
// ======================================================
|
// ======================================================
|
||||||
// XMLの一要素を作成
|
// XMLの一要素を作成
|
||||||
// ======================================================
|
// ======================================================
|
||||||
@ -20,6 +22,7 @@ static System::Xml::XmlElement^ CreateRomInfoListElement(System::Xml::XmlDocumen
|
|||||||
System::String ^label, System::String ^val, System::String ^type)
|
System::String ^label, System::String ^val, System::String ^type)
|
||||||
{
|
{
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement("info");
|
System::Xml::XmlElement ^tag = doc->CreateElement("info");
|
||||||
|
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
|
||||||
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
|
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
|
||||||
MasterEditorTWL::appendXmlTag( doc, tag, "value", val );
|
MasterEditorTWL::appendXmlTag( doc, tag, "value", val );
|
||||||
if( type )
|
if( type )
|
||||||
@ -33,6 +36,7 @@ static System::Xml::XmlElement^ CreateRomInfoListElement(System::Xml::XmlDocumen
|
|||||||
System::String ^label, System::Boolean isCheck, System::String ^type)
|
System::String ^label, System::Boolean isCheck, System::String ^type)
|
||||||
{
|
{
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement("info");
|
System::Xml::XmlElement ^tag = doc->CreateElement("info");
|
||||||
|
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
|
||||||
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
|
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
|
||||||
MasterEditorTWL::appendXmlTag( doc, tag, "value", (isCheck)?"Yes":"No" );
|
MasterEditorTWL::appendXmlTag( doc, tag, "value", (isCheck)?"Yes":"No" );
|
||||||
if( type )
|
if( type )
|
||||||
@ -46,6 +50,7 @@ static System::Xml::XmlElement^ CreateSDKVersionListElement(System::Xml::XmlDocu
|
|||||||
System::String ^version, System::Boolean isStatic)
|
System::String ^version, System::Boolean isStatic)
|
||||||
{
|
{
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement("sdk-version");
|
System::Xml::XmlElement ^tag = doc->CreateElement("sdk-version");
|
||||||
|
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
|
||||||
MasterEditorTWL::appendXmlTag( doc, tag, "version", version );
|
MasterEditorTWL::appendXmlTag( doc, tag, "version", version );
|
||||||
MasterEditorTWL::appendXmlTag( doc, tag, "is-static", (isStatic)?"Main SDK":"" );
|
MasterEditorTWL::appendXmlTag( doc, tag, "is-static", (isStatic)?"Main SDK":"" );
|
||||||
return tag;
|
return tag;
|
||||||
@ -73,6 +78,33 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
|||||||
// ゲーム情報
|
// ゲーム情報
|
||||||
root->AppendChild( this->makeGameInfoXmlElement(doc) );
|
root->AppendChild( this->makeGameInfoXmlElement(doc) );
|
||||||
|
|
||||||
|
// ファイルパス
|
||||||
|
MasterEditorTWL::appendXmlTag( doc, root, "path", this->tboxFile->Text );
|
||||||
|
|
||||||
|
// 作成日時
|
||||||
|
System::Xml::XmlElement ^time = doc->CreateElement( "time-info" );
|
||||||
|
System::DateTime ^ datetime = System::DateTime::Now;
|
||||||
|
time->SetAttribute( "year", datetime->Year.ToString() );
|
||||||
|
switch( datetime->Month )
|
||||||
|
{
|
||||||
|
case 1: time->SetAttribute( "month", "January" ); break;
|
||||||
|
case 2: time->SetAttribute( "month", "February" ); break;
|
||||||
|
case 3: time->SetAttribute( "month", "March" ); break;
|
||||||
|
case 4: time->SetAttribute( "month", "April" ); break;
|
||||||
|
case 5: time->SetAttribute( "month", "May" ); break;
|
||||||
|
case 6: time->SetAttribute( "month", "June" ); break;
|
||||||
|
case 7: time->SetAttribute( "month", "July" ); break;
|
||||||
|
case 8: time->SetAttribute( "month", "August" ); break;
|
||||||
|
case 9: time->SetAttribute( "month", "September" ); break;
|
||||||
|
case 10: time->SetAttribute( "month", "October" ); break;
|
||||||
|
case 11: time->SetAttribute( "month", "November" ); break;
|
||||||
|
case 12: time->SetAttribute( "month", "December" ); break;
|
||||||
|
default: time->SetAttribute( "month", datetime->Month.ToString() ); break;
|
||||||
|
}
|
||||||
|
time->SetAttribute( "day", datetime->Day.ToString() );
|
||||||
|
time->SetAttribute( "time", datetime->Hour.ToString("D2") + ":" + datetime->Minute.ToString("D2") );
|
||||||
|
root->AppendChild( time );
|
||||||
|
|
||||||
//
|
//
|
||||||
// 各タブごとに情報をまとめる
|
// 各タブごとに情報をまとめる
|
||||||
//
|
//
|
||||||
@ -82,6 +114,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
|||||||
section = doc->CreateElement("basic-rom-info");
|
section = doc->CreateElement("basic-rom-info");
|
||||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"ROM基本情報":"Basic ROM Info" );
|
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"ROM基本情報":"Basic ROM Info" );
|
||||||
{
|
{
|
||||||
|
s_NodeCount = 0;
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labTitleName->Text, this->tboxTitleName->Text, nullptr) );
|
tag->AppendChild( CreateRomInfoListElement(doc, this->labTitleName->Text, this->tboxTitleName->Text, nullptr) );
|
||||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labGameCode->Text, this->tboxGameCode->Text, nullptr) );
|
tag->AppendChild( CreateRomInfoListElement(doc, this->labGameCode->Text, this->tboxGameCode->Text, nullptr) );
|
||||||
@ -104,6 +137,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
|||||||
section = doc->CreateElement("twl-extended-info");
|
section = doc->CreateElement("twl-extended-info");
|
||||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"TWL拡張情報":"TWL Extended Info" );
|
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"TWL拡張情報":"TWL Extended Info" );
|
||||||
{
|
{
|
||||||
|
s_NodeCount = 0;
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labTitleIDLo->Text, this->tboxTitleIDLo->Text, nullptr) );
|
tag->AppendChild( CreateRomInfoListElement(doc, this->labTitleIDLo->Text, this->tboxTitleIDLo->Text, nullptr) );
|
||||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labTitleIDHi->Text, this->tboxTitleIDHi->Text, nullptr) );
|
tag->AppendChild( CreateRomInfoListElement(doc, this->labTitleIDHi->Text, this->tboxTitleIDHi->Text, nullptr) );
|
||||||
@ -125,6 +159,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
|||||||
section = doc->CreateElement("access-control-info");
|
section = doc->CreateElement("access-control-info");
|
||||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"アクセスコントロール情報":"Access Control" );
|
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"アクセスコントロール情報":"Access Control" );
|
||||||
{
|
{
|
||||||
|
s_NodeCount = 0;
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||||
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsSD->Text, this->cboxIsSD->Checked, nullptr) );
|
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsSD->Text, this->cboxIsSD->Checked, nullptr) );
|
||||||
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsNAND->Text, this->cboxIsNAND->Checked, nullptr) );
|
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsNAND->Text, this->cboxIsNAND->Checked, nullptr) );
|
||||||
@ -139,6 +174,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
|||||||
section = doc->CreateElement("dsi-ware-info");
|
section = doc->CreateElement("dsi-ware-info");
|
||||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"DSiウェア情報":"DSiWare Info" );
|
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"DSiウェア情報":"DSiWare Info" );
|
||||||
{
|
{
|
||||||
|
s_NodeCount = 0;
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labMedia->Text, this->tboxMedia->Text, nullptr) );
|
tag->AppendChild( CreateRomInfoListElement(doc, this->labMedia->Text, this->tboxMedia->Text, nullptr) );
|
||||||
if( this->hSrl->IsNAND ) // カードアプリでは不要な情報
|
if( this->hSrl->IsNAND ) // カードアプリでは不要な情報
|
||||||
@ -161,6 +197,8 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
|||||||
{
|
{
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||||
|
|
||||||
|
s_NodeCount = 0;
|
||||||
|
|
||||||
// リージョン
|
// リージョン
|
||||||
System::String ^region = "";
|
System::String ^region = "";
|
||||||
if( this->combRegion->DropDownStyle == System::Windows::Forms::ComboBoxStyle::DropDown )
|
if( this->combRegion->DropDownStyle == System::Windows::Forms::ComboBoxStyle::DropDown )
|
||||||
@ -211,6 +249,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
|||||||
section = doc->CreateElement("sdk-version-info");
|
section = doc->CreateElement("sdk-version-info");
|
||||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"SDKバージョン":"SDK Version" );
|
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"SDKバージョン":"SDK Version" );
|
||||||
{
|
{
|
||||||
|
s_NodeCount = 0;
|
||||||
System::Xml::XmlElement ^tag = doc->CreateElement("sdk-version-list");
|
System::Xml::XmlElement ^tag = doc->CreateElement("sdk-version-list");
|
||||||
for each( RCSDKVersion ^sdk in this->hSrl->hSDKList )
|
for each( RCSDKVersion ^sdk in this->hSrl->hSDKList )
|
||||||
{
|
{
|
||||||
@ -225,7 +264,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
|||||||
//
|
//
|
||||||
section = doc->CreateElement("middleware-info");
|
section = doc->CreateElement("middleware-info");
|
||||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"使用ライブラリ":"Libraries" );
|
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"使用ライブラリ":"Libraries" );
|
||||||
section->AppendChild( this->makeMiddlewareListXmlElement(doc) );
|
section->AppendChild( this->makeMiddlewareListXmlElement(doc, true) );
|
||||||
root->AppendChild(section);
|
root->AppendChild(section);
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -244,6 +283,13 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
|||||||
section->AppendChild( this->makeWarningListXmlElement(doc, isCurrent) );
|
section->AppendChild( this->makeWarningListXmlElement(doc, isCurrent) );
|
||||||
section->AppendChild( this->makeErrorListCaptionXmlElement(doc) );
|
section->AppendChild( this->makeErrorListCaptionXmlElement(doc) );
|
||||||
root->AppendChild(section);
|
root->AppendChild(section);
|
||||||
|
|
||||||
|
section = doc->CreateElement("error-num-info");
|
||||||
|
section->SetAttribute( "error-title", this->isJapanese()?"エラー":"Error" );
|
||||||
|
section->SetAttribute( "error-num", this->countErrorListXmlElement( isCurrent ).ToString() );
|
||||||
|
section->SetAttribute( "warning-title", this->isJapanese()?"警告":"Warning" );
|
||||||
|
section->SetAttribute( "warning-num", this->countWarningListXmlElement( isCurrent ).ToString() );
|
||||||
|
root->AppendChild(section);
|
||||||
}
|
}
|
||||||
|
|
||||||
} //Form1::makeRomInfoListXml
|
} //Form1::makeRomInfoListXml
|
||||||
|
|||||||
@ -22,6 +22,10 @@
|
|||||||
{
|
{
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
text-decoration:underline;
|
||||||
|
text-underline:single;
|
||||||
|
margin-top: 24px;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
div.spacer
|
div.spacer
|
||||||
{
|
{
|
||||||
@ -32,6 +36,24 @@
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
div.path
|
||||||
|
{
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
span.num-error
|
||||||
|
{
|
||||||
|
color: #FF0000;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
span.num-normal
|
||||||
|
{
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
div.error
|
||||||
|
{
|
||||||
|
}
|
||||||
hr {
|
hr {
|
||||||
width: 1000px;
|
width: 1000px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
@ -39,16 +61,48 @@
|
|||||||
tr {
|
tr {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
tr.even {
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
}
|
||||||
|
tr.odd {
|
||||||
|
background-color: #D6D3CE;
|
||||||
|
}
|
||||||
th {
|
th {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
background-color: #D6D3CE;
|
background-color: #D6D3CE;
|
||||||
color: black;
|
color: black;
|
||||||
|
padding-top: 2px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
th.label {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
th.value {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
th.type {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
th.version {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
th.is-static {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
th.publisher {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
th.name {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
th.note {
|
||||||
|
width: 400px;
|
||||||
}
|
}
|
||||||
th.errname {
|
th.errname {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
th.errtype {
|
th.errtype {
|
||||||
width: 100px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
th.errrange {
|
th.errrange {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
@ -59,12 +113,38 @@
|
|||||||
td {
|
td {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
padding-top: 2px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
td.label {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
td.value {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
td.type {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
td.version {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
td.is-static {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
td.publisher {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
td.name {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
td.note {
|
||||||
|
width: 400px;
|
||||||
}
|
}
|
||||||
td.errname {
|
td.errname {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
td.errtype {
|
td.errtype {
|
||||||
width: 100px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
td.errrange {
|
td.errrange {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
@ -85,20 +165,23 @@
|
|||||||
|
|
||||||
<xsl:template match="twl-master-editor">
|
<xsl:template match="twl-master-editor">
|
||||||
<xsl:apply-templates select="game" />
|
<xsl:apply-templates select="game" />
|
||||||
|
<xsl:apply-templates select="error-num-info" />
|
||||||
|
<div class="path">
|
||||||
|
<xsl:value-of select="path" />
|
||||||
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="index">Error</div>
|
<xsl:apply-templates select="error-info" />
|
||||||
<xsl:apply-templates select="error-list" />
|
<xsl:apply-templates select="warning-info" />
|
||||||
<hr />
|
|
||||||
<div class="index">Warning</div>
|
|
||||||
<xsl:apply-templates select="warning-list" />
|
|
||||||
<hr />
|
<hr />
|
||||||
<xsl:apply-templates select="error-caption-list" />
|
<xsl:apply-templates select="error-caption-list" />
|
||||||
<hr />
|
<hr />
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
generated by MasterEditorTWL ver. <xsl:value-of select="@version" />
|
generated on <xsl:apply-templates select="time-info" /> by MasterEditorTWL ver. <xsl:value-of select="@version" />
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- Title Info -->
|
||||||
|
|
||||||
<xsl:template match="game">
|
<xsl:template match="game">
|
||||||
<div class="game-title">
|
<div class="game-title">
|
||||||
<xsl:value-of select="title-name" />(<xsl:value-of select="game-code" />)
|
<xsl:value-of select="title-name" />(<xsl:value-of select="game-code" />)
|
||||||
@ -108,6 +191,56 @@
|
|||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- Each Section -->
|
||||||
|
|
||||||
|
<xsl:template match="error-info">
|
||||||
|
|
||||||
|
<div class="index"><xsl:value-of select="index" /></div>
|
||||||
|
|
||||||
|
<xsl:apply-templates select="error-list" />
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="warning-info">
|
||||||
|
|
||||||
|
<div class="index"><xsl:value-of select="index" /></div>
|
||||||
|
|
||||||
|
<xsl:apply-templates select="warning-list" />
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="error-num-info">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="@error-num > 0">
|
||||||
|
<span class="num-error">
|
||||||
|
<xsl:value-of select="@error-title" /> : <xsl:value-of select="@error-num" />
|
||||||
|
</span>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<span class="num-normal">
|
||||||
|
<xsl:value-of select="@error-title" /> : <xsl:value-of select="@error-num" />
|
||||||
|
</span>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
,
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="@warning-num > 0">
|
||||||
|
<span class="num-error">
|
||||||
|
<xsl:value-of select="@warning-title" /> : <xsl:value-of select="@warning-num" />
|
||||||
|
</span>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<span class="num-normal">
|
||||||
|
<xsl:value-of select="@warning-title" /> : <xsl:value-of select="@warning-num" />
|
||||||
|
</span>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="time-info">
|
||||||
|
<xsl:value-of select="@month" /> <xsl:value-of select="@day" />, <xsl:value-of select="@year" /> <xsl:value-of select="@time" />
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- Make the Error and Warning table -->
|
||||||
|
|
||||||
<xsl:template match="error-list">
|
<xsl:template match="error-list">
|
||||||
<table cellspacing="0">
|
<table cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
@ -122,11 +255,20 @@
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="error">
|
<xsl:template match="error">
|
||||||
<tr>
|
<xsl:if test="(@num mod 2)=1">
|
||||||
<td class="errname"><xsl:value-of select="errname" /></td>
|
<tr class="odd">
|
||||||
<td class="errtype"><xsl:value-of select="errtype" /></td>
|
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||||
<td class="errmsg"><xsl:value-of select="errmsg" /></td>
|
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||||
|
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="(@num mod 2)=0">
|
||||||
|
<tr class="even">
|
||||||
|
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||||
|
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||||
|
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="warning-list">
|
<xsl:template match="warning-list">
|
||||||
@ -143,11 +285,20 @@
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="warning">
|
<xsl:template match="warning">
|
||||||
<tr>
|
<xsl:if test="(@num mod 2)=1">
|
||||||
<td class="errname"><xsl:value-of select="errname" /></td>
|
<tr class="odd">
|
||||||
<td class="errtype"><xsl:value-of select="errtype" /></td>
|
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||||
<td class="errmsg"><xsl:value-of select="errmsg" /></td>
|
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||||
|
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="(@num mod 2)=0">
|
||||||
|
<tr class="even">
|
||||||
|
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||||
|
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||||
|
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="error-caption-list">
|
<xsl:template match="error-caption-list">
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>TWL Error List</title>
|
<title>TWL Rom Information List</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
font-family: "verdana";
|
font-family: "verdana";
|
||||||
@ -22,6 +22,10 @@
|
|||||||
{
|
{
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
text-decoration:underline;
|
||||||
|
text-underline:single;
|
||||||
|
margin-top: 24px;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
div.spacer
|
div.spacer
|
||||||
{
|
{
|
||||||
@ -32,6 +36,25 @@
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
div.path
|
||||||
|
{
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
span.num-error
|
||||||
|
{
|
||||||
|
color: #FF0000;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
span.num-normal
|
||||||
|
{
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
div.error
|
||||||
|
{
|
||||||
|
color: #FF0000;
|
||||||
|
}
|
||||||
hr {
|
hr {
|
||||||
width: 1000px;
|
width: 1000px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
@ -39,10 +62,18 @@
|
|||||||
tr {
|
tr {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
tr.even {
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
}
|
||||||
|
tr.odd {
|
||||||
|
background-color: #D6D3CE;
|
||||||
|
}
|
||||||
th {
|
th {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
background-color: #D6D3CE;
|
background-color: #D6D3CE;
|
||||||
color: black;
|
color: black;
|
||||||
|
padding-top: 2px;
|
||||||
|
padding-bottom: 2px;
|
||||||
}
|
}
|
||||||
th.label {
|
th.label {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
@ -83,6 +114,8 @@
|
|||||||
td {
|
td {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
padding-top: 2px;
|
||||||
|
padding-bottom: 2px;
|
||||||
}
|
}
|
||||||
td.label {
|
td.label {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
@ -135,6 +168,11 @@
|
|||||||
|
|
||||||
<xsl:template match="twl-master-editor">
|
<xsl:template match="twl-master-editor">
|
||||||
<xsl:apply-templates select="game" />
|
<xsl:apply-templates select="game" />
|
||||||
|
<xsl:apply-templates select="error-num-info" />
|
||||||
|
<div class="path">
|
||||||
|
<xsl:value-of select="path" />
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
<xsl:apply-templates select="basic-rom-info" />
|
<xsl:apply-templates select="basic-rom-info" />
|
||||||
<xsl:apply-templates select="twl-extended-info" />
|
<xsl:apply-templates select="twl-extended-info" />
|
||||||
<xsl:apply-templates select="access-control-info" />
|
<xsl:apply-templates select="access-control-info" />
|
||||||
@ -144,8 +182,9 @@
|
|||||||
<xsl:apply-templates select="middleware-info" />
|
<xsl:apply-templates select="middleware-info" />
|
||||||
<xsl:apply-templates select="error-info" />
|
<xsl:apply-templates select="error-info" />
|
||||||
<xsl:apply-templates select="warning-info" />
|
<xsl:apply-templates select="warning-info" />
|
||||||
|
<hr />
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
generated by MasterEditorTWL ver. <xsl:value-of select="@version" />
|
generated on <xsl:apply-templates select="time-info" /> by MasterEditorTWL ver. <xsl:value-of select="@version" />
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
@ -158,7 +197,6 @@
|
|||||||
<div class="game-version">
|
<div class="game-version">
|
||||||
version: <xsl:value-of select="rom-version" />
|
version: <xsl:value-of select="rom-version" />
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Each Section -->
|
<!-- Each Section -->
|
||||||
@ -168,7 +206,6 @@
|
|||||||
<div class="index"><xsl:value-of select="index" /></div>
|
<div class="index"><xsl:value-of select="index" /></div>
|
||||||
|
|
||||||
<xsl:apply-templates select="info-list" />
|
<xsl:apply-templates select="info-list" />
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="twl-extended-info">
|
<xsl:template match="twl-extended-info">
|
||||||
@ -176,7 +213,6 @@
|
|||||||
<div class="index"><xsl:value-of select="index" /></div>
|
<div class="index"><xsl:value-of select="index" /></div>
|
||||||
|
|
||||||
<xsl:apply-templates select="info-list" />
|
<xsl:apply-templates select="info-list" />
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="access-control-info">
|
<xsl:template match="access-control-info">
|
||||||
@ -184,7 +220,6 @@
|
|||||||
<div class="index"><xsl:value-of select="index" /></div>
|
<div class="index"><xsl:value-of select="index" /></div>
|
||||||
|
|
||||||
<xsl:apply-templates select="info-list" />
|
<xsl:apply-templates select="info-list" />
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="dsi-ware-info">
|
<xsl:template match="dsi-ware-info">
|
||||||
@ -192,7 +227,6 @@
|
|||||||
<div class="index"><xsl:value-of select="index" /></div>
|
<div class="index"><xsl:value-of select="index" /></div>
|
||||||
|
|
||||||
<xsl:apply-templates select="info-list" />
|
<xsl:apply-templates select="info-list" />
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="market-and-rating-info">
|
<xsl:template match="market-and-rating-info">
|
||||||
@ -200,7 +234,6 @@
|
|||||||
<div class="index"><xsl:value-of select="index" /></div>
|
<div class="index"><xsl:value-of select="index" /></div>
|
||||||
|
|
||||||
<xsl:apply-templates select="info-list" />
|
<xsl:apply-templates select="info-list" />
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="sdk-version-info">
|
<xsl:template match="sdk-version-info">
|
||||||
@ -208,7 +241,6 @@
|
|||||||
<div class="index"><xsl:value-of select="index" /></div>
|
<div class="index"><xsl:value-of select="index" /></div>
|
||||||
|
|
||||||
<xsl:apply-templates select="sdk-version-list" />
|
<xsl:apply-templates select="sdk-version-list" />
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="middleware-info">
|
<xsl:template match="middleware-info">
|
||||||
@ -216,7 +248,6 @@
|
|||||||
<div class="index"><xsl:value-of select="index" /></div>
|
<div class="index"><xsl:value-of select="index" /></div>
|
||||||
|
|
||||||
<xsl:apply-templates select="middleware-list" />
|
<xsl:apply-templates select="middleware-list" />
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="error-info">
|
<xsl:template match="error-info">
|
||||||
@ -226,7 +257,6 @@
|
|||||||
<xsl:apply-templates select="error-list" />
|
<xsl:apply-templates select="error-list" />
|
||||||
<hr />
|
<hr />
|
||||||
<xsl:apply-templates select="error-caption-list" />
|
<xsl:apply-templates select="error-caption-list" />
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="warning-info">
|
<xsl:template match="warning-info">
|
||||||
@ -236,9 +266,39 @@
|
|||||||
<xsl:apply-templates select="warning-list" />
|
<xsl:apply-templates select="warning-list" />
|
||||||
<hr />
|
<hr />
|
||||||
<xsl:apply-templates select="error-caption-list" />
|
<xsl:apply-templates select="error-caption-list" />
|
||||||
<hr />
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="error-num-info">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="@error-num > 0">
|
||||||
|
<span class="num-error">
|
||||||
|
<xsl:value-of select="@error-title" /> : <xsl:value-of select="@error-num" />
|
||||||
|
</span>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<span class="num-normal">
|
||||||
|
<xsl:value-of select="@error-title" /> : <xsl:value-of select="@error-num" />
|
||||||
|
</span>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
,
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="@warning-num > 0">
|
||||||
|
<span class="num-error">
|
||||||
|
<xsl:value-of select="@warning-title" /> : <xsl:value-of select="@warning-num" />
|
||||||
|
</span>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<span class="num-normal">
|
||||||
|
<xsl:value-of select="@warning-title" /> : <xsl:value-of select="@warning-num" />
|
||||||
|
</span>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="time-info">
|
||||||
|
<xsl:value-of select="@month" /> <xsl:value-of select="@day" />, <xsl:value-of select="@year" /> <xsl:value-of select="@time" />
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Make tables from Lists -->
|
<!-- Make tables from Lists -->
|
||||||
|
|
||||||
@ -256,11 +316,20 @@
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="info">
|
<xsl:template match="info">
|
||||||
<tr>
|
<xsl:if test="(@num mod 2)=1">
|
||||||
|
<tr class="odd">
|
||||||
<td class="name"><xsl:value-of select="label" /></td>
|
<td class="name"><xsl:value-of select="label" /></td>
|
||||||
<td class="value"><xsl:value-of select="value" /></td>
|
<td class="value"><xsl:value-of select="value" /></td>
|
||||||
<td class="type"><xsl:value-of select="type" /></td>
|
<td class="type"><xsl:value-of select="type" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="(@num mod 2)=0">
|
||||||
|
<tr class="even">
|
||||||
|
<td class="name"><xsl:value-of select="label" /></td>
|
||||||
|
<td class="value"><xsl:value-of select="value" /></td>
|
||||||
|
<td class="type"><xsl:value-of select="type" /></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Make the SDK version table -->
|
<!-- Make the SDK version table -->
|
||||||
@ -279,11 +348,20 @@
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="sdk-version">
|
<xsl:template match="sdk-version">
|
||||||
<tr>
|
<xsl:if test="(@num mod 2)=1">
|
||||||
|
<tr class="odd">
|
||||||
<td class="version"><xsl:value-of select="version" /></td>
|
<td class="version"><xsl:value-of select="version" /></td>
|
||||||
<td class="is-static"><xsl:value-of select="is-static" /></td>
|
<td class="is-static"><xsl:value-of select="is-static" /></td>
|
||||||
<td class="type"></td>
|
<td class="type"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="(@num mod 2)=0">
|
||||||
|
<tr class="even">
|
||||||
|
<td class="version"><xsl:value-of select="version" /></td>
|
||||||
|
<td class="is-static"><xsl:value-of select="is-static" /></td>
|
||||||
|
<td class="type"></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Make the Libraries table -->
|
<!-- Make the Libraries table -->
|
||||||
@ -302,11 +380,20 @@
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="middleware">
|
<xsl:template match="middleware">
|
||||||
<tr>
|
<xsl:if test="(@num mod 2)=1">
|
||||||
|
<tr class="odd">
|
||||||
<td class="publisher"><xsl:value-of select="publisher" /></td>
|
<td class="publisher"><xsl:value-of select="publisher" /></td>
|
||||||
<td class="name"><xsl:value-of select="name" /></td>
|
<td class="name"><xsl:value-of select="name" /></td>
|
||||||
<td class="note"><xsl:value-of select="note" /></td>
|
<td class="note"><xsl:value-of select="note" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="(@num mod 2)=0">
|
||||||
|
<tr class="even">
|
||||||
|
<td class="publisher"><xsl:value-of select="publisher" /></td>
|
||||||
|
<td class="name"><xsl:value-of select="name" /></td>
|
||||||
|
<td class="note"><xsl:value-of select="note" /></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Make the Error and Warning table -->
|
<!-- Make the Error and Warning table -->
|
||||||
@ -325,11 +412,20 @@
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="error">
|
<xsl:template match="error">
|
||||||
<tr>
|
<xsl:if test="(@num mod 2)=1">
|
||||||
<td class="errname"><xsl:value-of select="errname" /></td>
|
<tr class="odd">
|
||||||
<td class="errtype"><xsl:value-of select="errtype" /></td>
|
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||||
<td class="errmsg"><xsl:value-of select="errmsg" /></td>
|
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||||
|
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="(@num mod 2)=0">
|
||||||
|
<tr class="even">
|
||||||
|
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||||
|
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||||
|
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="warning-list">
|
<xsl:template match="warning-list">
|
||||||
@ -346,11 +442,20 @@
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="warning">
|
<xsl:template match="warning">
|
||||||
<tr>
|
<xsl:if test="(@num mod 2)=1">
|
||||||
<td class="errname"><xsl:value-of select="errname" /></td>
|
<tr class="odd">
|
||||||
<td class="errtype"><xsl:value-of select="errtype" /></td>
|
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||||
<td class="errmsg"><xsl:value-of select="errmsg" /></td>
|
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||||
|
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="(@num mod 2)=0">
|
||||||
|
<tr class="even">
|
||||||
|
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||||
|
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||||
|
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||||
|
</tr>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="error-caption-list">
|
<xsl:template match="error-caption-list">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user