マスタエディタ:ROM情報リストの作成。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@314 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
nishikawa_takeshi 2009-06-24 06:45:53 +00:00
parent b152e31697
commit 511d07d413
17 changed files with 8440 additions and 6900 deletions

View File

@ -310,9 +310,6 @@
<data name="cboxIsInputPerson2.Text" xml:space="preserve">
<value>Enter Contact 2 (optional)</value>
</data>
<data name="gboxPerson2.Text" xml:space="preserve">
<value>Contact 2</value>
</data>
<data name="labArbit4.Size" type="System.Drawing.Size, System.Drawing">
<value>55, 12</value>
</data>
@ -325,8 +322,8 @@
<data name="labArbit3.Text" xml:space="preserve">
<value>(Optional)</value>
</data>
<data name="gboxPerson1.Text" xml:space="preserve">
<value>Contact 1</value>
<data name="gboxPerson2.Text" xml:space="preserve">
<value>Contact 2</value>
</data>
<data name="labArbit2.Size" type="System.Drawing.Size, System.Drawing">
<value>55, 12</value>
@ -346,18 +343,21 @@
<data name="labMail1.Text" xml:space="preserve">
<value>E-mail</value>
</data>
<data name="gboxPerson1.Text" xml:space="preserve">
<value>Contact 1</value>
</data>
<data name="gboxUsage.Text" xml:space="preserve">
<value>Usage</value>
</data>
<data name="gboxSubmitWay.Text" xml:space="preserve">
<value>Submission Method</value>
</data>
<data name="rSubmitHand.Size" type="System.Drawing.Size, System.Drawing">
<value>67, 16</value>
</data>
<data name="rSubmitHand.Text" xml:space="preserve">
<value>By Hand</value>
</data>
<data name="gboxSubmitWay.Text" xml:space="preserve">
<value>Submission Method</value>
</data>
<data name="labSubmiteDate.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 143</value>
</data>
@ -397,15 +397,15 @@
<data name="labProductCodeForeign.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 74</value>
</data>
<data name="gboxShared2Size.Text" xml:space="preserve">
<value>Shared 2 File Size</value>
</data>
<data name="cboxIsShared2.Size" type="System.Drawing.Size, System.Drawing">
<value>130, 16</value>
</data>
<data name="cboxIsShared2.Text" xml:space="preserve">
<value>Use of Shared 2 File</value>
</data>
<data name="gboxShared2Size.Text" xml:space="preserve">
<value>Shared 2 File Size</value>
</data>
<data name="labLib.Size" type="System.Drawing.Size, System.Drawing">
<value>161, 12</value>
</data>
@ -460,9 +460,6 @@
<data name="cboxIsTmpJump.Text" xml:space="preserve">
<value>Permit Tmp Jump Landing</value>
</data>
<data name="gboxAccess.Text" xml:space="preserve">
<value>Access Control Information</value>
</data>
<data name="labPhotoAccess.Size" type="System.Drawing.Size, System.Drawing">
<value>128, 12</value>
</data>
@ -475,6 +472,9 @@
<data name="labAccessOther.Text" xml:space="preserve">
<value>Other</value>
</data>
<data name="gboxAccess.Text" xml:space="preserve">
<value>Access Control Information</value>
</data>
<data name="labAppType.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 79</value>
</data>
@ -502,21 +502,9 @@
<data name="gboxProd.Text" xml:space="preserve">
<value>ROM Submission Information</value>
</data>
<data name="stripItemOpenRom.Size" type="System.Drawing.Size, System.Drawing">
<value>245, 22</value>
</data>
<data name="stripItemSepFile1.Size" type="System.Drawing.Size, System.Drawing">
<value>242, 6</value>
</data>
<data name="stripItemSaveTemp.Size" type="System.Drawing.Size, System.Drawing">
<value>245, 22</value>
</data>
<data name="stripItemSaveTemp.Text" xml:space="preserve">
<value>Save submission data to temp file</value>
</data>
<data name="stripItemLoadTemp.Size" type="System.Drawing.Size, System.Drawing">
<value>245, 22</value>
</data>
<data name="stripItemLoadTemp.Text" xml:space="preserve">
<value>Load saved submission data</value>
</data>
@ -547,17 +535,11 @@
<data name="stripItemMiddlewareHtml.Text" xml:space="preserve">
<value>Create middleware list only (HTML format)</value>
</data>
<data name="tabRomInfo.Text" xml:space="preserve">
<value>Basic ROM Info</value>
</data>
<data name="tboxGuideRomInfo.Text" xml:space="preserve">
<value>Information on this tab cannot be edited. If data errors exist, review the ROM's build settings.</value>
</data>
<data name="tabTWLInfo.Text" xml:space="preserve">
<value>TWL Extended Info</value>
</data>
<data name="gboxLaunch.Text" xml:space="preserve">
<value>Launch Control on DSi Menu</value>
<data name="tabRomInfo.Text" xml:space="preserve">
<value>Basic ROM Info</value>
</data>
<data name="labConnectIcon.Size" type="System.Drawing.Size, System.Drawing">
<value>198, 12</value>
@ -565,18 +547,18 @@
<data name="labConnectIcon.Text" xml:space="preserve">
<value>Display Connection Icon on DSi Menu</value>
</data>
<data name="gboxLaunch.Text" xml:space="preserve">
<value>Launch Control on DSi Menu</value>
</data>
<data name="tboxGuideTWLInfo.Text" xml:space="preserve">
<value>Information on this tab cannot be edited. If data errors exist, review the ROM's build settings.</value>
</data>
<data name="tabNandSizeInfo.Text" xml:space="preserve">
<value>DSiWare Info</value>
<data name="tabTWLInfo.Text" xml:space="preserve">
<value>TWL Extended Info</value>
</data>
<data name="tboxGuideNandSizeInfo.Text" xml:space="preserve">
<value>Information on this tab is required to confirm the amount of space a given Nintendo DSiWare title (NAND application) uses in the system memory. &lt;newline&gt;If the media of the application is a Game Card, there is no need to check the amount of system memory used.</value>
</data>
<data name="gboxNandSize.Text" xml:space="preserve">
<value>Amount of System NAND Memory Used by DSiWare Application</value>
</data>
<data name="labNandSize.Location" type="System.Drawing.Point, System.Drawing">
<value>154, 23</value>
</data>
@ -640,11 +622,11 @@
<data name="labTmdSize.Text" xml:space="preserve">
<value>Other</value>
</data>
<data name="tabRomEditInfo.Text" xml:space="preserve">
<value>Market and Rating ***</value>
<data name="gboxNandSize.Text" xml:space="preserve">
<value>Amount of System NAND Memory Used by DSiWare Application</value>
</data>
<data name="gboxOtherSpec.Text" xml:space="preserve">
<value>Other ROM Specifications</value>
<data name="tabNandSizeInfo.Text" xml:space="preserve">
<value>DSiWare Info</value>
</data>
<data name="cboxIsUGC.Size" type="System.Drawing.Size, System.Drawing">
<value>227, 16</value>
@ -652,15 +634,15 @@
<data name="cboxIsUGC.Text" xml:space="preserve">
<value>UGC (User Generated Content) Support</value>
</data>
<data name="gboxOtherSpec.Text" xml:space="preserve">
<value>Other ROM Specifications</value>
</data>
<data name="butSetBack.Text" xml:space="preserve">
<value>Restore Initial Settings</value>
</data>
<data name="tboxGuideRomEditInfo.Text" xml:space="preserve">
<value>You must complete all items on this tab to create a submission checklist and Master ROM. &lt;newline&gt;This information is used as ROM registration data when the Master ROM is created (excluding "Other ROM Specifications").</value>
</data>
<data name="gboxParental.Text" xml:space="preserve">
<value>Market and Rating Information</value>
</data>
<data name="combGRB.Items" xml:space="preserve">
<value>All</value>
</data>
@ -679,8 +661,11 @@
<data name="cboxIsUnnecessaryRating.Text" xml:space="preserve">
<value>Rating Not Required (Tools Only)</value>
</data>
<data name="tabSubmitInfo.Text" xml:space="preserve">
<value>Submission Info ***</value>
<data name="gboxParental.Text" xml:space="preserve">
<value>Market and Rating Information</value>
</data>
<data name="tabRomEditInfo.Text" xml:space="preserve">
<value>Market and Rating ***</value>
</data>
<data name="labProductNameLimit.Text" xml:space="preserve">
<value>(100 characters or less)</value>
@ -688,9 +673,6 @@
<data name="tboxGuideSubmitInfo.Text" xml:space="preserve">
<value>You must complete all items on this tab to create a submission checklist.</value>
</data>
<data name="gboxForeign.Text" xml:space="preserve">
<value>Foreign Version</value>
</data>
<data name="labProductNameLimitForeign.Text" xml:space="preserve">
<value>(100 characters or less)</value>
</data>
@ -700,27 +682,30 @@
<data name="labMultiForeign2.Text" xml:space="preserve">
<value>(When for &gt;1 market)</value>
</data>
<data name="tabCompanyInfo.Text" xml:space="preserve">
<value>Company Info ***</value>
<data name="gboxForeign.Text" xml:space="preserve">
<value>Foreign Version</value>
</data>
<data name="tabSubmitInfo.Text" xml:space="preserve">
<value>Submission Info ***</value>
</data>
<data name="tboxGuideCompanyInfo.Text" xml:space="preserve">
<value>You must complete all items on this tab to create a submission checklist. Enter all information.</value>
</data>
<data name="tabErrorInfo.Text" xml:space="preserve">
<value>Error Info</value>
<data name="tabCompanyInfo.Text" xml:space="preserve">
<value>Company Info ***</value>
</data>
<data name="tboxGuideErrorInfo.Text" xml:space="preserve">
<value>This tab lists problems in the ROM data file and editing mistakes made when using this program. &lt;newline&gt;Items in red cannot be corrected using this program. You must modify the ROM build settings. &lt;newline&gt;Items in blue indicate problems with the ROM data that can be can corrected using this program. &lt;newline&gt;Items in black indicate errors or omissions in the Submission Info and Company Info tabs.</value>
</data>
<data name="gboxErrorTiming.Text" xml:space="preserve">
<value>Display Information From</value>
</data>
<data name="rErrorCurrent.Size" type="System.Drawing.Size, System.Drawing">
<value>121, 16</value>
</data>
<data name="rErrorCurrent.Text" xml:space="preserve">
<value>Apply current input</value>
</data>
<data name="gboxErrorTiming.Text" xml:space="preserve">
<value>Display Information From</value>
</data>
<data name="labWarn.Size" type="System.Drawing.Size, System.Drawing">
<value>466, 12</value>
</data>
@ -745,4 +730,7 @@
<data name="colErrorBegin.HeaderText" xml:space="preserve">
<value>Start</value>
</data>
<data name="tabErrorInfo.Text" xml:space="preserve">
<value>Error Info</value>
</data>
</root>

View File

@ -749,40 +749,49 @@
<value>ROM提出情報</value>
</data>
<data name="stripItemOpenRom.Size" type="System.Drawing.Size, System.Drawing">
<value>399, 22</value>
<value>403, 22</value>
</data>
<data name="stripItemOpenRom.Text" xml:space="preserve">
<value>ROMデータを開く</value>
</data>
<data name="stripItemSepFile1.Size" type="System.Drawing.Size, System.Drawing">
<value>396, 6</value>
<value>400, 6</value>
</data>
<data name="stripItemSaveTemp.Size" type="System.Drawing.Size, System.Drawing">
<value>399, 22</value>
<value>403, 22</value>
</data>
<data name="stripItemSaveTemp.Text" xml:space="preserve">
<value>提出情報を一時保存する</value>
</data>
<data name="stripItemLoadTemp.Size" type="System.Drawing.Size, System.Drawing">
<value>399, 22</value>
<value>403, 22</value>
</data>
<data name="stripItemLoadTemp.Text" xml:space="preserve">
<value>一時保存した提出情報を開く</value>
</data>
<data name="toolStripSeparator2.Size" type="System.Drawing.Size, System.Drawing">
<value>400, 6</value>
</data>
<data name="stripItemRomInfoList.Size" type="System.Drawing.Size, System.Drawing">
<value>403, 22</value>
</data>
<data name="stripItemRomInfoList.Text" xml:space="preserve">
<value>ROM情報をHTMLファイルに出力する</value>
</data>
<data name="toolStripSeparator1.Size" type="System.Drawing.Size, System.Drawing">
<value>396, 6</value>
<value>400, 6</value>
</data>
<data name="stripItemErrorListRead.Size" type="System.Drawing.Size, System.Drawing">
<value>399, 22</value>
<value>403, 22</value>
</data>
<data name="stripItemErrorListRead.Text" xml:space="preserve">
<value>エラー情報をHTMLファイルに出力する(ROMデータ読み込み時の情報)</value>
<value>エラー情報をHTMLファイルに出力する (ROMデータ読み込み時の情報)</value>
</data>
<data name="stripItemErrorListCurrent.Size" type="System.Drawing.Size, System.Drawing">
<value>399, 22</value>
<value>403, 22</value>
</data>
<data name="stripItemErrorListCurrent.Text" xml:space="preserve">
<value>エラー情報をHTMLファイルに出力する(現在の入力を反映した情報)</value>
<value>エラー情報をHTMLファイルに出力する (現在の入力を反映した情報)</value>
</data>
<data name="stripFile.Size" type="System.Drawing.Size, System.Drawing">
<value>51, 20</value>
@ -791,31 +800,31 @@
<value>ファイル</value>
</data>
<data name="stripItemSheet.Size" type="System.Drawing.Size, System.Drawing">
<value>280, 22</value>
<value>284, 22</value>
</data>
<data name="stripItemSheet.Text" xml:space="preserve">
<value>提出データ一式を作成する</value>
</data>
<data name="stripItemSepMaster1.Size" type="System.Drawing.Size, System.Drawing">
<value>277, 6</value>
<value>281, 6</value>
</data>
<data name="stripItemMasterRom.Size" type="System.Drawing.Size, System.Drawing">
<value>280, 22</value>
<value>284, 22</value>
</data>
<data name="stripItemMasterRom.Text" xml:space="preserve">
<value>マスターROMのみを作成する</value>
</data>
<data name="stripItemMiddlewareXml.Size" type="System.Drawing.Size, System.Drawing">
<value>280, 22</value>
<value>284, 22</value>
</data>
<data name="stripItemMiddlewareXml.Text" xml:space="preserve">
<value>ミドルウェアリストのみを作成する(XML形式)</value>
<value>ミドルウェアリストのみを作成する (XML形式)</value>
</data>
<data name="stripItemMiddlewareHtml.Size" type="System.Drawing.Size, System.Drawing">
<value>280, 22</value>
<value>284, 22</value>
</data>
<data name="stripItemMiddlewareHtml.Text" xml:space="preserve">
<value>ミドルウェアリストのみを作成する(HTML形式)</value>
<value>ミドルウェアリストのみを作成する (HTML形式)</value>
</data>
<data name="stripMaster.Size" type="System.Drawing.Size, System.Drawing">
<value>53, 20</value>

View File

@ -244,7 +244,7 @@ void Form1::setDeliverableProperties(void)
System::String^ Form1::setDeliverableRatingOgnProperties( System::Windows::Forms::ComboBox ^box )
{
System::String ^str;
if( this->cboxIsUnnecessaryRating->Checked )
if( this->cboxIsUnnecessaryRating->Checked ) // レーティング表示不要が選択されているとき
{
if( box->FlatStyle == System::Windows::Forms::FlatStyle::Standard )
{

View File

@ -13,6 +13,9 @@ using namespace System::Data;
using namespace System::Drawing;
using namespace MasterEditorTWL;
// ======================================================
// XMLの一要素を作成
// ======================================================
static System::Xml::XmlElement^ CreateErrorListElement(System::Xml::XmlDocument ^doc, RCMrcError ^err, int errtype,
System::String ^tagname, System::Boolean isJapanese)
{
@ -25,7 +28,9 @@ static System::Xml::XmlElement^ CreateErrorListElement(System::Xml::XmlDocument
return tag;
}
// ======================================================
// XML形式でリストを作成
// ======================================================
System::Void Form1::makeErrorListXml(System::Xml::XmlDocument ^doc, System::Boolean isCurrent)
{
System::Xml::XmlElement ^root = doc->CreateElement( "twl-master-editor" );
@ -34,20 +39,7 @@ System::Void Form1::makeErrorListXml(System::Xml::XmlDocument ^doc, System::Bool
doc->AppendChild( root );
// ゲーム情報
System::Xml::XmlElement ^game = doc->CreateElement( "game" );
root->AppendChild( game );
if( System::String::IsNullOrEmpty( this->tboxProductName->Text ) )
{
MasterEditorTWL::appendXmlTag( doc, game, "product-name", this->tboxTitleName->Text ); // 製品名が未入力のときはソフトタイトルで代用
}
else
{
MasterEditorTWL::appendXmlTag( doc, game, "product-name", this->tboxProductName->Text );
}
MasterEditorTWL::appendXmlTag( doc, game, "title-name", this->tboxTitleName->Text );
MasterEditorTWL::appendXmlTag( doc, game, "game-code", this->tboxGameCode->Text );
MasterEditorTWL::appendXmlTag( doc, game, "rom-version", this->tboxRemasterVer->Text );
MasterEditorTWL::appendXmlTag( doc, game, "submit-version", System::Decimal::ToByte(this->numSubmitVersion->Value).ToString("X") );
root->AppendChild( this->makeGameInfoXmlElement(doc) );
// エラーリスト
System::Xml::XmlElement ^errorlist = doc->CreateElement( "error-list" );
@ -134,6 +126,9 @@ System::Void Form1::makeErrorListXml(System::Xml::XmlDocument ^doc, System::Bool
}
} //System::Void Form1::makeErrorListXml
// ======================================================
// HTML形式でファイルを出力
// ======================================================
System::Void Form1::makeErrorListHtml(System::String ^filepath, System::Boolean isCurrent)
{
System::String ^tmpxml = gcnew System::String( this->getXmlToHtmlTmpFile() );

View File

@ -359,6 +359,7 @@ void MasterEditorTWL::Form1::changeLanguage( System::String ^langname )
resources->ApplyResources(this->cboxIsNormalJump, L"cboxIsNormalJump");
resources->ApplyResources(this->cboxIsTmpJump, L"cboxIsTmpJump");
resources->ApplyResources(this->gboxAccess, L"gboxAccess");
resources->ApplyResources(this->labSDAccessRight, L"labSDAccessRight");
resources->ApplyResources(this->labPhotoAccess, L"labPhotoAccess");
resources->ApplyResources(this->labAccessOther, L"labAccessOther");
resources->ApplyResources(this->tboxAccessOther, L"tboxAccessOther");

View File

@ -23,18 +23,11 @@ using namespace System::Drawing;
using namespace MasterEditorTWL;
// ----------------------------------------------
// XML形式のリスト作成
// XML形式のリストに付属させるタイトル情報の作成
// ----------------------------------------------
System::Void Form1::makeMiddlewareListXml(System::Xml::XmlDocument^ doc)
System::Xml::XmlElement^ Form1::makeGameInfoXmlElement(System::Xml::XmlDocument ^doc)
{
System::Xml::XmlElement ^root = doc->CreateElement( "twl-master-editor" );
System::Reflection::Assembly ^ass = System::Reflection::Assembly::GetEntryAssembly();
root->SetAttribute( "version", this->getVersion() );
doc->AppendChild( root );
// ゲーム情報
System::Xml::XmlElement ^game = doc->CreateElement( "game" );
root->AppendChild( game );
if( System::String::IsNullOrEmpty( this->tboxProductName->Text ) )
{
MasterEditorTWL::appendXmlTag( doc, game, "product-name", this->tboxTitleName->Text ); // 製品名が未入力のときはソフトタイトルで代用
@ -47,10 +40,15 @@ System::Void Form1::makeMiddlewareListXml(System::Xml::XmlDocument^ doc)
MasterEditorTWL::appendXmlTag( doc, game, "game-code", this->tboxGameCode->Text );
MasterEditorTWL::appendXmlTag( doc, game, "rom-version", this->tboxRemasterVer->Text );
MasterEditorTWL::appendXmlTag( doc, game, "submit-version", System::Decimal::ToByte(this->numSubmitVersion->Value).ToString("X") );
return game;
}
// ミドルウェアリスト
// ----------------------------------------------
// XML形式のリストの本体となるミドルウェアリストの作成(他でも使うので独立させる)
// ----------------------------------------------
System::Xml::XmlElement^ Form1::makeMiddlewareListXmlElement(System::Xml::XmlDocument ^doc)
{
System::Xml::XmlElement ^midlist = doc->CreateElement( "middleware-list" );
root->AppendChild( midlist );
if( this->hSrl->hLicenseList != nullptr )
{
for each( RCLicense ^lic in this->hSrl->hLicenseList )
@ -67,10 +65,32 @@ System::Void Form1::makeMiddlewareListXml(System::Xml::XmlDocument^ doc)
{
note = this->hMiddlewareNameList->search(lic->Publisher, lic->Name, false );
}
if( note == nullptr )
{
note = "";
}
MasterEditorTWL::appendXmlTag( doc, mid, "note", note );
midlist->AppendChild( mid );
}
}
return midlist;
}
// ----------------------------------------------
// XML形式のリストを作成
// ----------------------------------------------
System::Void Form1::makeMiddlewareListXml(System::Xml::XmlDocument^ doc)
{
System::Xml::XmlElement ^root = doc->CreateElement( "twl-master-editor" );
System::Reflection::Assembly ^ass = System::Reflection::Assembly::GetEntryAssembly();
root->SetAttribute( "version", this->getVersion() );
doc->AppendChild( root );
// ゲーム情報
root->AppendChild( this->makeGameInfoXmlElement(doc) );
// ミドルウェアリスト
root->AppendChild( this->makeMiddlewareListXmlElement(doc) );
}
// ----------------------------------------------

View File

@ -0,0 +1,227 @@
// ----------------------------------------------
// ROM情報リストの書き出し
// ----------------------------------------------
#include "stdafx.h"
#include "Form1.h"
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace MasterEditorTWL;
// ======================================================
// XMLの一要素を作成
// ======================================================
static System::Xml::XmlElement^ CreateRomInfoListElement(System::Xml::XmlDocument ^doc,
System::String ^label, System::String ^val, System::String ^type)
{
System::Xml::XmlElement ^tag = doc->CreateElement("info");
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
MasterEditorTWL::appendXmlTag( doc, tag, "value", val );
if( type )
{
MasterEditorTWL::appendXmlTag( doc, tag, "type", type );
}
return tag;
}
static System::Xml::XmlElement^ CreateRomInfoListElement(System::Xml::XmlDocument ^doc,
System::String ^label, System::Boolean isCheck, System::String ^type)
{
System::Xml::XmlElement ^tag = doc->CreateElement("info");
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
MasterEditorTWL::appendXmlTag( doc, tag, "value", (isCheck)?"Yes":"No" );
if( type )
{
MasterEditorTWL::appendXmlTag( doc, tag, "type", type );
}
return tag;
}
static System::Xml::XmlElement^ CreateSDKVersionListElement(System::Xml::XmlDocument ^doc,
System::String ^version, System::Boolean isStatic)
{
System::Xml::XmlElement ^tag = doc->CreateElement("sdk-version");
MasterEditorTWL::appendXmlTag( doc, tag, "version", version );
MasterEditorTWL::appendXmlTag( doc, tag, "is-static", (isStatic)?"Resident module":"" );
return tag;
}
// ======================================================
// XML形式でリストを作成
// ======================================================
void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc)
{
System::Xml::XmlElement ^root = doc->CreateElement( "twl-master-editor" );
System::Reflection::Assembly ^ass = System::Reflection::Assembly::GetEntryAssembly();
root->SetAttribute( "version", this->getVersion() );
doc->AppendChild( root );
// ゲーム情報
root->AppendChild( this->makeGameInfoXmlElement(doc) );
//
// 各タブごとに情報をまとめる
//
System::Xml::XmlElement ^section;
// ROM基本情報
section = doc->CreateElement("basic-rom-info");
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"ROM基本情報":"Basic ROM Info" );
{
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
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->labMakerCode->Text, this->tboxMakerCode->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labPlatform->Text, this->tboxPlatform->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labRomType->Text, this->tboxRomLatency->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labRomSize->Text, this->tboxRomSize->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labRemasterVer->Text, this->tboxRemasterVer->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labCaptionEx->Text, this->tboxCaptionEx->Text, nullptr) );
section->AppendChild(tag);
}
root->AppendChild(section);
// TWL拡張情報タブ
section = doc->CreateElement("twl-extended-info");
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"TWL拡張情報":"TWL Extended Info" );
{
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
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->labAppType->Text, this->tboxAppType->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labAppTypeOther->Text, this->tboxAppTypeOther->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labIsCodec->Text, this->tboxIsCodec->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labKeyTableRomOffset->Text, this->tboxKeyTableRomOffset->Text, nullptr) );
//tag->AppendChild( CreateRomInfoListElement(doc, this->labNormalRomOffset->Text, this->tboxNormalRomOffset->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsSubBanner->Text, this->cboxIsSubBanner->Checked, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsTmpJump->Text, this->cboxIsTmpJump->Checked, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsNormalJump->Text, this->cboxIsNormalJump->Checked, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsEULA->Text, this->cboxIsEULA->Checked, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labConnectIcon->Text, this->tboxConnectIcon->Text, nullptr) );
section->AppendChild(tag);
}
root->AppendChild(section);
// アクセス情報
section = doc->CreateElement("access-control-info");
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"アクセスコントロール情報":"Access Control" );
{
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
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->labSDAccessRight->Text, this->tboxSDAccessRight->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labPhotoAccess->Text, this->tboxPhotoAccess->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labAccessOther->Text, this->tboxAccessOther->Text, nullptr) );
section->AppendChild(tag);
}
root->AppendChild(section);
// DSiウェア情報
section = doc->CreateElement("dsi-ware-info");
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"DSiウェア情報":"DSiWare Info" );
{
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
tag->AppendChild( CreateRomInfoListElement(doc, this->labMedia->Text, this->tboxMedia->Text, nullptr) );
if( this->hSrl->IsNAND ) // カードアプリでは不要な情報
{
tag->AppendChild( CreateRomInfoListElement(doc, this->labSrlSize->Text, this->tboxSrlSize->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labPublicSize->Text, this->tboxPublicSize->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labPrivateSize->Text, this->tboxPrivateSize->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labSubBannerSize->Text, this->tboxSubBannerSize->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labTmdSize->Text, this->tboxTmdSize->Text, nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labSumSize->Text + " " + this->labSumSize2->Text,
this->tboxSumSize->Text + " (" + this->tboxSumSizeMB->Text + ")", nullptr) );
}
section->AppendChild(tag);
}
root->AppendChild(section);
// リージョンとレーティング
section = doc->CreateElement("market-and-rating-info");
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"リージョンとレーティング":"Market and Rating" );
{
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
// リージョン
tag->AppendChild( CreateRomInfoListElement(doc, this->labRegion->Text,
dynamic_cast<System::String^>(this->combRegion->SelectedItem), nullptr) );
section->AppendChild(tag);
// レーティング
tag->AppendChild( CreateRomInfoListElement(doc, this->labCERO->Text,
this->setDeliverableRatingOgnProperties(this->combCERO), nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labESRB->Text,
this->setDeliverableRatingOgnProperties(this->combESRB), nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labUSK->Text,
this->setDeliverableRatingOgnProperties(this->combUSK), nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labPEGI->Text,
this->setDeliverableRatingOgnProperties(this->combPEGI), nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labPEGI_PRT->Text,
this->setDeliverableRatingOgnProperties(this->combPEGI_PRT), nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labPEGI_BBFC->Text,
this->setDeliverableRatingOgnProperties(this->combPEGI_BBFC), nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labOFLC->Text,
this->setDeliverableRatingOgnProperties(this->combOFLC), nullptr) );
tag->AppendChild( CreateRomInfoListElement(doc, this->labGRB->Text,
this->setDeliverableRatingOgnProperties(this->combGRB), nullptr) );
section->AppendChild(tag);
}
root->AppendChild(section);
//
// SDKバージョンは独立
//
section = doc->CreateElement("sdk-version-info");
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"SDKバージョン":"SDK Version" );
{
System::Xml::XmlElement ^tag = doc->CreateElement("sdk-version-list");
for each( RCSDKVersion ^sdk in this->hSrl->hSDKList )
{
tag->AppendChild( CreateSDKVersionListElement(doc, sdk->Version, sdk->IsStatic) );
}
section->AppendChild(tag);
}
root->AppendChild(section);
//
// ミドルウェアリストも独立
//
section = doc->CreateElement("middleware-info");
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"使用ライブラリ":"Libraries" );
section->AppendChild( this->makeMiddlewareListXmlElement(doc) );
root->AppendChild(section);
} //Form1::makeRomInfoListXml
// ======================================================
// HTML形式でファイルを出力
// ======================================================
void Form1::makeRomInfoListHtml(System::String ^filepath)
{
System::String ^tmpxml = gcnew System::String( this->getXmlToHtmlTmpFile() );
try
{
// TMPファイルにXML版作成
System::Xml::XmlDocument ^doc = gcnew System::Xml::XmlDocument();
doc->AppendChild( doc->CreateXmlDeclaration("1.0","UTF-8",nullptr) );
this->makeRomInfoListXml( doc );
doc->Save( tmpxml );
// XML=>HTML変換
System::Xml::Xsl::XslCompiledTransform ^xslt = gcnew System::Xml::Xsl::XslCompiledTransform;
xslt->Load( this->getRomInfoListXsl() );
xslt->Transform( tmpxml, filepath );
}
catch (System::Exception ^s)
{
System::IO::File::Delete( tmpxml ); // 次のためにTMPファイルを削除しておく
throw s; // 呼び出し元に例外を再throw
return;
}
System::IO::File::Delete( tmpxml );
} //Form1::makeRomInfoListHtml(System::String ^filepath)

View File

@ -255,6 +255,10 @@
RelativePath=".\Form_pctl.cpp"
>
</File>
<File
RelativePath=".\Form_rominfolist.cpp"
>
</File>
<File
RelativePath=".\Form_srl.cpp"
>

View File

@ -82,6 +82,11 @@ Exception:{0}
<E_ErrList_Default>Failed to create the error list.</E_ErrList_Default>
<ErrList_Success>Succeeded in creating error list.</ErrList_Success>
<!-- ROM Info List -->
<E_RomInfoList_Empty>ROM data file has not been read.</E_RomInfoList_Empty>
<E_RomInfoList_Default>Failed to create the ROM info list.</E_RomInfoList_Default>
<RomInfoList_Success>Succeeded in creating ROM info list.</RomInfoList_Success>
<!-- Save Temp File -->
<E_SaveTemp>Failed to save temporary information.</E_SaveTemp>

View File

@ -82,6 +82,11 @@
<E_ErrList_Default>エラーリストの作成に失敗しました。</E_ErrList_Default>
<ErrList_Success>エラーリストの作成に成功しました。</ErrList_Success>
<!-- ROM Info List -->
<E_RomInfoList_Empty>ROMデータファイルが読み込まれていません。</E_RomInfoList_Empty>
<E_RomInfoList_Default>ROM情報リストの作成に失敗しました。</E_RomInfoList_Default>
<RomInfoList_Success>ROM情報リストの作成に成功しました。</RomInfoList_Success>
<!-- Save Temp File -->
<E_SaveTemp>一時情報の保存に失敗しました。</E_SaveTemp>

View File

@ -68,22 +68,22 @@
<middleware>
<publisher>Zi Corporation</publisher>
<code>DLTLIB</code>
<note-j>Handwriting Recognition Library Japanese</note-j>
<note-e></note-e>
<note-j>Decuma手書文字認識ライブラリ日本語版 for NINTENDO DS</note-j>
<note-e>Handwriting Recognition Library Japanese</note-e>
</middleware>
<middleware>
<publisher>Zi Corporation</publisher>
<code>SCRLIB</code>
<note-j>Handwriting Recognition Library</note-j>
<note-e></note-e>
<note-j>Decuma手書文字認識ライブラリ英語版 for NINTENDO DS</note-j>
<note-e>Handwriting Recognition Library</note-e>
</middleware>
<middleware>
<publisher>Zi Corporation</publisher>
<code>MCRLIB</code>
<note-j>Handwriting Recognition Library</note-j>
<note-e></note-e>
<note-j>Decuma手書文字認識ライブラリ英語版 for NINTENDO DS</note-j>
<note-e>Handwriting Recognition Library</note-e>
</middleware>
<middleware>

View File

@ -0,0 +1,243 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>TWL Error List</title>
<style type="text/css">
body {
font-family: "verdana";
font-size: 12px;
text-align: left;
}
div.game-title {
font-size: 16px;
font-weight: bold;
}
div.game-version {
font-size: 12px;
font-weight: bold;
}
div.index
{
font-size: 14px;
font-weight: bold;
}
div.spacer
{
font-size: 14px;
}
div.caption
{
font-size: 10px;
font-weight: bold;
}
hr {
width: 1000px;
margin-left: 0;
}
tr {
text-align: left;
}
th {
font-size: 12px;
background-color: #D6D3CE;
color: black;
}
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;
}
td {
font-weight: normal;
font-size: 12px;
}
</style>
</head>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<!-- Root -->
<xsl:template match="twl-master-editor">
<xsl:apply-templates select="game" />
<hr />
<xsl:apply-templates select="basic-rom-info" />
<hr />
<xsl:apply-templates select="twl-extended-info" />
<hr />
<xsl:apply-templates select="access-control-info" />
<hr />
<xsl:apply-templates select="dsi-ware-info" />
<hr />
<xsl:apply-templates select="market-and-rating-info" />
<hr />
<xsl:apply-templates select="sdk-version-info" />
<hr />
<xsl:apply-templates select="middleware-info" />
<hr />
<div class="footer">
generated by MasterEditorTWL ver. <xsl:value-of select="@version" />
</div>
</xsl:template>
<!-- Title Info -->
<xsl:template match="game">
<div class="game-title">
<xsl:value-of select="title-name" />(<xsl:value-of select="game-code" />)
</div>
<div class="game-version">
version: <xsl:value-of select="rom-version" />
</div>
</xsl:template>
<!-- Each Section -->
<xsl:template match="basic-rom-info">
<div class="index"><xsl:value-of select="index" /></div>
<xsl:apply-templates select="info-list" />
</xsl:template>
<xsl:template match="twl-extended-info">
<div class="index"><xsl:value-of select="index" /></div>
<xsl:apply-templates select="info-list" />
</xsl:template>
<xsl:template match="access-control-info">
<div class="index"><xsl:value-of select="index" /></div>
<xsl:apply-templates select="info-list" />
</xsl:template>
<xsl:template match="dsi-ware-info">
<div class="index"><xsl:value-of select="index" /></div>
<xsl:apply-templates select="info-list" />
</xsl:template>
<xsl:template match="market-and-rating-info">
<div class="index"><xsl:value-of select="index" /></div>
<xsl:apply-templates select="info-list" />
</xsl:template>
<xsl:template match="sdk-version-info">
<div class="index"><xsl:value-of select="index" /></div>
<xsl:apply-templates select="sdk-version-list" />
</xsl:template>
<xsl:template match="middleware-info">
<div class="index"><xsl:value-of select="index" /></div>
<xsl:apply-templates select="middleware-list" />
</xsl:template>
<!-- Make tables from Lists -->
<xsl:template match="info-list">
<table cellspacing="0">
<tr>
<th class="label">Item Name</th>
<th class="value">Value</th>
<th class="type">Note</th>
</tr>
<xsl:apply-templates />
</table>
</xsl:template>
<xsl:template match="info">
<tr>
<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:template>
<!-- Make the SDK version table -->
<xsl:template match="sdk-version-list">
<table cellspacing="0">
<tr>
<th class="version">Version</th>
<th class="is-static">Area</th>
<th class="type">Note</th>
</tr>
<xsl:apply-templates />
</table>
</xsl:template>
<xsl:template match="sdk-version">
<tr>
<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:template>
<!-- Make the Libraries table -->
<xsl:template match="middleware-list">
<table cellspacing="0">
<tr>
<th class="publisher">Publisher</th>
<th class="name">Name</th>
<th class="note">Note</th>
</tr>
<xsl:apply-templates />
</table>
</xsl:template>
<xsl:template match="middleware">
<tr>
<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:template>
</xsl:stylesheet>