From 2bdb3cc67a7977bf108f143843273b5f9c62de0b Mon Sep 17 00:00:00 2001 From: nishikawa_takeshi Date: Mon, 2 Mar 2009 08:30:50 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=9E=E3=82=B9=E3=82=BF=E3=82=A8=E3=83=87?= =?UTF-8?q?=E3=82=A3=E3=82=BF:=E8=8B=B1=E8=AA=9E=E7=89=88GUI=E3=83=A1?= =?UTF-8?q?=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=82=92=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@193 7061adef-622a-194b-ae81-725974e89856 --- .../MasterEditorTWL/Debug/BuildLog.htm | Bin 22906 -> 22906 bytes .../MasterEditorTWL/MasterEditorTWL/Form1.h | 11 +++ .../MasterEditorTWL/resource/gui_msg_e.xml | 81 ++++++++++++++++++ .../MasterEditorTWL/resource/gui_msg_j.xml | 20 +++-- 4 files changed, 104 insertions(+), 8 deletions(-) create mode 100644 build/tools/MasterEditor/MasterEditorTWL/resource/gui_msg_e.xml diff --git a/build/tools/MasterEditor/MasterEditorTWL/MasterEditorTWL/Debug/BuildLog.htm b/build/tools/MasterEditor/MasterEditorTWL/MasterEditorTWL/Debug/BuildLog.htm index 190d03304884a6578783c2b34144534448c9bdf9..ea6fd712d653df97d9910a0f21f52d87b749e77f 100644 GIT binary patch delta 473 zcmeyhiSgGa#tmj{!Uhb648{zW3`PtlK-w5c8*J7V-N>~07l#eYofKvyDX#GgirZS?SH!to1-TO|j{mY-90i zvx!|36IKOCy3MfZ-W=g%1Ja2p3DK#*IQgDCpR@skIl68JJ%%KPM23>dfoz(aP26^X i9EhQ4^MChTrpZe3B9oVRO#=p#)Z_qOw#{bVE_?t*t6kFo delta 477 zcmeyhiSgGa#tmj{!p00H48{!R45kcbK-!YQfWcz3w&+Ht&A&KoSSC;5bDA8$&#~E# zH;i%fHNJf;*wjz1myO;0!CHh7C~1ntFh>ro67{m|APJDQDArHb7B$^`PF03?a)YtZ zW-sGUjFTM<6ehni(%WofY6h|dL(Aq?vqF%BITo{wH``d`Fk_XhmzCap%~}tn(*m2$ z$u<_RHk;TrF=17Jq}vjk?#&TSHXxmtk`SE=jFa!V^GO>sIHK!j&|^qqNMtCP9LT1* o*~D!J$blG&Hvf0eWtuGJtupzXH^*cxd7jA)Ueh*Pc{}g{0HO$D00000 diff --git a/build/tools/MasterEditor/MasterEditorTWL/MasterEditorTWL/Form1.h b/build/tools/MasterEditor/MasterEditorTWL/MasterEditorTWL/Form1.h index b968494..ab97b10 100644 --- a/build/tools/MasterEditor/MasterEditorTWL/MasterEditorTWL/Form1.h +++ b/build/tools/MasterEditor/MasterEditorTWL/MasterEditorTWL/Form1.h @@ -3803,6 +3803,17 @@ private: System::Windows::Forms::Label^ labCountryCodeL; this->errMsg( msgJ, msgE ); return; } + u16 crc; // SRL全体のCRCを計算する + if( !getWholeCRCInFile( srlfile, &crc ) ) + { + this->errMsg( "CRCの計算に失敗しました。", + "Calculating CRC is failed. " ); + return; + } + this->tboxWholeCRC->Clear(); + this->tboxWholeCRC->AppendText( "0x" ); + this->tboxWholeCRC->AppendText( crc.ToString("X4") ); // 書き出したSRLを再読み込みするのでCRCを再計算する + } //stripItemMasterRom_Click() private: diff --git a/build/tools/MasterEditor/MasterEditorTWL/resource/gui_msg_e.xml b/build/tools/MasterEditor/MasterEditorTWL/resource/gui_msg_e.xml new file mode 100644 index 0000000..b71a831 --- /dev/null +++ b/build/tools/MasterEditor/MasterEditorTWL/resource/gui_msg_e.xml @@ -0,0 +1,81 @@ +サソ + + +{0} already exists. Overwrite data? + + +Cannot find the configuration file. +Cannot open the configuration file. +Temporary file already exists. Delete this data. +Cannot find the extended configuration file. +Cannot open the extended configuration file +Cannot read the SDK version in the configuration file. + + +Illegal ROM data. Not a TWL ROM or ROM data may have been modified. +This tool is for TWL only. Cannot read a ROM that does not support TWL, such as a NTR-only ROM. +Failed to read ROM data file. Read ROM data again. +ROM data CRC calculation failed. ROM data read canceled. +Cannot read because the ROM data file does not exist. +The reading of the TAD file has failed. + + +ROM data file has not been read +Submission data cannot be created due to illegal settings. +Submission data cannot be created due to insufficient input information. +The following submission files are all created at one time. + +{0} (Master ROM) +{1} (Master ROM submission checklist) +{2} (List of middleware) +{3} (Print version of list of middleware) + +Select a save-to folder. +Submission data is not created because folder selection has been canceled. +Submission data is not created because file overwrite has been canceled. +Failed to create Master ROM. Halted during creation, so some files were not created. +Master ROM file not created due to failure to open the output file. +Master ROM file not created due to failure to read the file. +Master ROM file not created due to failure to write to the output file. +Master ROM file not created due to failure to copy the input ROM data file. +Master ROM file not created because the output file cannot be created if the input ROM data file does not exist in the source folder. +Master ROM file not created due to failure to calculate the digital signature of the output file. +Failed to calculate CRC. Halted during creation, so some files were not created. +Could not create middleware list. Halted during creation, so some files were not created. +Failed to create Master ROM. Halted during creation, so some files were not created. + +Exception:{0} +{1} +Failed to create submission checklist because submission checklist template could not be opened. +Could not write data to submission checklist. Check that a file of the same name is not already open. +Failed to create submission checklist. +Succeeded in creating submission data. + + +Could not create Master ROM because the ROM data file has not been read. +Could not create Master ROM due to illegal settings. +This procedure creates the following files. + +{0} (Master ROM) +Select a save-to folder. +The Master ROM was not created because folder selection has been canceled. +Creation of Master ROM was canceled. +Failed to create Master ROM. +Failed to create Master ROM. + +萓句、:{0} +{1} +Succeeded in creating Master ROM. +Failed to calculate CRC. + + +ROM data file has not been read. +Failed to create the middleware list. + + +Failed to save temporary information. + + +Failed to read temporary information. + + diff --git a/build/tools/MasterEditor/MasterEditorTWL/resource/gui_msg_j.xml b/build/tools/MasterEditor/MasterEditorTWL/resource/gui_msg_j.xml index 83afe8e..1284f75 100644 --- a/build/tools/MasterEditor/MasterEditorTWL/resource/gui_msg_j.xml +++ b/build/tools/MasterEditor/MasterEditorTWL/resource/gui_msg_j.xml @@ -12,14 +12,17 @@ 險ュ螳壹ヵ繧。繧、繝ォ荳ュ縺ョSDK繝舌シ繧ク繝ァ繝ウ縺瑚ェュ縺ソ霎シ繧√∪縺帙s縺ァ縺励◆縲ゅヰ繝シ繧ク繝ァ繝ウ縺ッ0縺ィ縺ソ縺ェ縺輔l縺セ縺吶 -譛ャ繝繝シ繝ォ縺ッTWL逕ィ縺ァ縺吶NTR蟆ら畑ROM縺ェ縺ゥ縺ョTWL髱槫ッセ蠢彝OM繧定ェュ縺ソ霎シ繧縺薙→縺ッ縺ァ縺阪∪縺帙s縲 荳肴ュ」縺ェROM繝繝シ繧ソ縺ァ縺吶5WL蟇セ蠢/蟆ら畑ROM縺ァ縺ェ縺縺騎OM繝繝シ繧ソ縺梧隼縺悶s縺輔l縺ヲ縺繧句庄閭ス諤ァ縺後≠繧翫∪縺吶 -ROM繝繝シ繧ソ繝輔ぃ繧、繝ォ縺ョ隱ュ縺ソ霎シ縺ソ縺ォ螟ア謨励@縺セ縺励◆縲\n蜀榊コヲROM繝繝シ繧ソ繧定ェュ縺ソ霎シ縺セ縺帙※縺上□縺輔>縲 +譛ャ繝繝シ繝ォ縺ッTWL逕ィ縺ァ縺吶NTR蟆ら畑ROM縺ェ縺ゥ縺ョTWL髱槫ッセ蠢彝OM繧定ェュ縺ソ霎シ繧縺薙→縺ッ縺ァ縺阪∪縺帙s縲 +ROM繝繝シ繧ソ繝輔ぃ繧、繝ォ縺ョ隱ュ縺ソ霎シ縺ソ縺ォ螟ア謨励@縺セ縺励◆縲ょ榊コヲROM繝繝シ繧ソ繧定ェュ縺ソ霎シ縺セ縺帙※縺上□縺輔>縲 ROM繝繝シ繧ソ縺ョCRC險育ョ励↓螟ア謨励@縺セ縺励◆縲3OM繝繝シ繧ソ縺ョ隱ュ縺ソ霎シ縺ソ縺ッ繧ュ繝」繝ウ繧サ繝ォ縺輔l縺セ縺励◆縲 繝輔ぃ繧、繝ォ縺悟ュ伜惠縺励∪縺帙s縺ョ縺ァ隱ュ縺ソ霎シ繧縺薙→縺後〒縺阪∪縺帙s縲 TAD繝輔ぃ繧、繝ォ縺ョ隱ュ縺ソ霎シ縺ソ縺ォ螟ア謨励@縺セ縺励◆縲 +ROM繝繝シ繧ソ繝輔ぃ繧、繝ォ縺瑚ェュ縺ソ霎シ縺セ繧後※縺縺セ縺帙s縲 +荳肴ュ」縺ェ險ュ螳壹′縺ゅk縺溘a謠仙コ繝繝シ繧ソ繧剃ス懈舌〒縺阪∪縺帙s縲 +蜈・蜉帶ュ蝣ア縺ォ荳崎カウ縺後≠繧九◆繧∵署蜃コ繝繝シ繧ソ繧剃ス懈舌〒縺阪∪縺帙s縲 莉・荳九ョ謠仙コ繝輔ぃ繧、繝ォ縺御ク蠎ヲ縺ォ菴懈舌&繧後∪縺吶 {0} (繝槭せ繧ソ繝シROM) @@ -28,9 +31,6 @@ {3} (繝溘ラ繝ォ繧ヲ繧ァ繧「荳隕ァ 蜊ー蛻キ逕ィ) 菫晏ュ伜医ヵ繧ゥ繝ォ繝繧帝∈謚槭@縺ヲ縺上□縺輔>縲 -謠仙コ繝繝シ繧ソ荳蠑上ョ菴懈舌↓謌仙粥縺励∪縺励◆縲 -ROM繝繝シ繧ソ繝輔ぃ繧、繝ォ縺瑚ェュ縺ソ霎シ縺セ繧後※縺縺セ縺帙s縲 -荳肴ュ」縺ェ險ュ螳壹′縺ゅk縺溘a謠仙コ繝繝シ繧ソ繧剃ス懈舌〒縺阪∪縺帙s縲 繝輔か繝ォ繝縺ョ驕ク謚槭′繧ュ繝」繝ウ繧サ繝ォ縺輔l縺セ縺励◆縺ョ縺ァ謠仙コ繝繝シ繧ソ荳蠑上ッ菴懈舌&繧後∪縺帙s縲 繝輔ぃ繧、繝ォ縺ョ荳頑嶌縺阪′繧ュ繝」繝ウ繧サ繝ォ縺輔l縺セ縺励◆縺ョ縺ァ謠仙コ繝繝シ繧ソ荳蠑上ッ菴懈舌&繧後∪縺帙s縲 繝槭せ繧ソ繝シROM縺ョ菴懈舌↓螟ア謨励@縺セ縺励◆縲ゆス懈舌r荳ュ豁「縺吶k縺溘a荳驛ィ縺ョ繝輔ぃ繧、繝ォ縺ッ菴懈舌&繧後∪縺帙s縲 @@ -41,6 +41,7 @@ 蜴溷屏:蜈・蜉娚OM繝繝シ繧ソ繝輔ぃ繧、繝ォ縺悟縺ョ繝輔か繝ォ繝縺ォ蟄伜惠縺励↑縺縺ィ縺榊コ蜉帙ヵ繧。繧、繝ォ繧剃ス懈舌〒縺阪∪縺帙s縲 蜴溷屏:蜃コ蜉帙ヵ繧。繧、繝ォ縺ョ繝繧」繧ク繧ソ繝ォ鄂イ蜷阪ョ險育ョ励↓螟ア謨励@縺セ縺励◆縲 繝槭せ繧ソ繝シROM縺ョ菴懈舌↓螟ア謨励@縺セ縺励◆縲ゆス懈舌r荳ュ豁「縺吶k縺溘a荳驛ィ縺ョ繝輔ぃ繧、繝ォ縺ッ菴懈舌&繧後∪縺帙s縲 + 萓句、:{0} {1} CRC縺ョ險育ョ励↓螟ア謨励@縺セ縺励◆縲ゆス懈舌r荳ュ豁「縺吶k縺溘a荳驛ィ縺ョ繝輔ぃ繧、繝ォ縺ッ菴懈舌&繧後∪縺帙s縲 @@ -48,21 +49,24 @@ 謠仙コ遒コ隱肴嶌縺ョ菴懈舌↓螟ア謨励@縺セ縺励◆縲 謠仙コ遒コ隱肴嶌縺ョ繝繝ウ繝励Ξ繝シ繝医′髢九¢縺ェ縺九▲縺溘◆繧√∵署蜃コ遒コ隱肴嶌縺ョ菴懈舌↓螟ア謨励@縺セ縺励◆縲 謠仙コ遒コ隱肴嶌縺ォ繝繝シ繧ソ繧呈嶌縺崎セシ縺ソ縺ァ縺阪∪縺帙s縺ァ縺励◆縲ょ酔蜷阪ヵ繧。繧、繝ォ縺後☆縺ァ縺ォ髢九°繧後※縺縺ェ縺縺九#遒コ隱阪¥縺縺輔>縲 +謠仙コ繝繝シ繧ソ荳蠑上ョ菴懈舌↓謌仙粥縺励∪縺励◆縲 +ROM繝繝シ繧ソ繝輔ぃ繧、繝ォ縺瑚ェュ縺ソ霎シ縺セ繧後※縺縺セ縺帙s縺ョ縺ァ縲√槭せ繧ソ繝シROM縺ョ菴懈舌′縺ァ縺阪∪縺帙s縲 +荳肴ュ」縺ェ險ュ螳壹′縺ゅk縺溘a繝槭せ繧ソ繝シROM縺ョ菴懈舌′縺ァ縺阪∪縺帙s縲 莉・荳九ョ繝輔ぃ繧、繝ォ縺御ス懈舌&繧後∪縺吶 {0} (繝槭せ繧ソ繝シROM) 菫晏ュ伜医ヵ繧ゥ繝ォ繝繧帝∈謚槭@縺ヲ縺上□縺輔>縲 -繝槭せ繧ソ繝シROM縺ョ菴懈舌↓螟ア謨励@縺セ縺励◆縲 -ROM繝繝シ繧ソ繝輔ぃ繧、繝ォ縺瑚ェュ縺ソ霎シ縺セ繧後※縺縺セ縺帙s縺ョ縺ァ縲√槭せ繧ソ繝シROM縺ョ菴懈舌′縺ァ縺阪∪縺帙s縲 -荳肴ュ」縺ェ險ュ螳壹′縺ゅk縺溘a繝槭せ繧ソ繝シROM縺ョ菴懈舌′縺ァ縺阪∪縺帙s縲 繝輔か繝ォ繝縺ョ驕ク謚槭′繧ュ繝」繝ウ繧サ繝ォ縺輔l縺セ縺励◆縺ョ縺ァ繝槭せ繧ソ繝シROM縺ッ菴懈舌&繧後∪縺帙s縲 繝輔ぃ繧、繝ォ縺ョ荳頑嶌縺阪′繧ュ繝」繝ウ繧サ繝ォ縺輔l縺セ縺励◆縺ョ縺ァ繝槭せ繧ソ繝シROM縺ッ菴懈舌&繧後∪縺帙s縲 繝槭せ繧ソ繝シROM縺ョ菴懈舌↓螟ア謨励@縺セ縺励◆縲 繝槭せ繧ソ繝シROM縺ョ菴懈舌↓螟ア謨励@縺セ縺励◆縲 + 萓句、:{0} {1} +繝槭せ繧ソ繝シROM縺ョ菴懈舌↓謌仙粥縺励∪縺励◆縲 +CRC縺ョ險育ョ励↓螟ア謨励@縺セ縺励◆縲 ROM繝繝シ繧ソ繝輔ぃ繧、繝ォ縺瑚ェュ縺ソ霎シ縺セ繧後※縺縺セ縺帙s縲