マスタエディタ:CODECのNTRモードの表記を"NTR"から"DS"に変更。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@145 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
nishikawa_takeshi 2009-01-27 06:26:12 +00:00
parent 17c61bd59b
commit 54a8783f32
6 changed files with 25 additions and 15 deletions

View File

@ -86,7 +86,7 @@ void Form1::setSrlForms(void)
}
else
{
this->tboxIsCodec->Text = gcnew System::String( "NTR" );
this->tboxIsCodec->Text = gcnew System::String( "DS" );
}
this->cboxIsSD->Checked = this->hSrl->IsSD;
this->cboxIsNAND->Checked = this->hSrl->IsNAND;

View File

@ -316,7 +316,7 @@ ECDeliverableResult RCDeliverable::writeSpreadsheet(
if( hSrl->IsCodecTWL )
node->FirstChild->Value = gcnew System::String("TWL");
else
node->FirstChild->Value = gcnew System::String("NTR");
node->FirstChild->Value = gcnew System::String("DS");
}
if( node->FirstChild->Value->Equals( "TagIsEULA" ) )
{

View File

@ -142,9 +142,8 @@ namespace MasterEditorTWL
property System::UInt32 PrivateSaveSize;
property System::Boolean IsMediaNand; // NANDアプリかどうか
property System::Boolean IsUseSubBanner; // サブバナーを使用するかどうか
public:
static const System::UInt32 TmdSize = 16 * 1024;
private:
static const System::UInt32 cTmdSize = 16 * 1024;
static const System::UInt32 cSubBannerSize = 16 * 1024;
static const System::UInt32 NandClusterSize = 16 * 1024;
static const System::UInt32 ShopBlockSize = 128 * 1024;
@ -168,17 +167,6 @@ namespace MasterEditorTWL
{
System::UInt32 get(){ return (MasterEditorTWL::roundUp( this->PrivateSaveSize, NandClusterSize )); }
}
property System::UInt32 TmdSizeRoundUp
{
System::UInt32 get()
{
if( !this->IsMediaNand )
{
return 0;
}
return (MasterEditorTWL::roundUp( this->TmdSize, NandClusterSize ));
}
}
property System::UInt32 SubBannerSize // サブバナーのサイズは使用するかしないかで異なるので計算した値を property で提供
{
System::UInt32 get()
@ -201,6 +189,28 @@ namespace MasterEditorTWL
return (MasterEditorTWL::roundUp( this->SubBannerSize, NandClusterSize ));
}
}
property System::UInt32 TmdSize
{
System::UInt32 get()
{
if( !this->IsMediaNand )
{
return 0;
}
return this->cTmdSize;
}
}
property System::UInt32 TmdSizeRoundUp
{
System::UInt32 get()
{
if( !this->IsMediaNand )
{
return 0;
}
return (MasterEditorTWL::roundUp( this->TmdSize, NandClusterSize ));
}
}
property System::UInt32 NandUsedSize // 全体のNAND消費サイズは変数で持たず property で提供
{
System::UInt32 get()