mirror of
https://github.com/rvtr/TwlToolsRED.git
synced 2025-10-31 06:41:18 -04:00
マスタエディタ:予約領域追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@79 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
parent
aa266cfc74
commit
aac3ba3286
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1206,11 +1206,11 @@ ECSrlResult RCSrl::mrcTWL( FILE *fp )
|
||||
// 値チェック
|
||||
|
||||
fseek( fp, 0, SEEK_END );
|
||||
u32 filesize = ftell(fp); // 実ファイルサイズ(単位Mbit)
|
||||
u32 romsize = 1 << (this->pRomHeader->s.rom_size); // ROM容量
|
||||
u32 filesize = ftell(fp); // 実ファイルサイズ
|
||||
u32 romsize = 1 << (this->pRomHeader->s.rom_size); // ROM容量(単位Mbit)
|
||||
if( !this->IsMediaNand ) // カードアプリのときのみのチェック
|
||||
{
|
||||
u32 filesizeMb = (filesize / (1024*1024)) * 8;
|
||||
u32 filesizeMb = (filesize / (1024*1024)) * 8; // 単位をMbitに直す
|
||||
if( romsize < filesizeMb )
|
||||
{
|
||||
this->hErrorList->Add( gcnew RCMrcError(
|
||||
@ -1269,8 +1269,8 @@ ECSrlResult RCSrl::mrcTWL( FILE *fp )
|
||||
"デバイス容量", 0x14, 0x14, "NANDアプリに対して指定可能な容量ではありません。",
|
||||
"Device Capacity", "Invalid capacity.", false, true ) );
|
||||
}
|
||||
u32 allsizeMB = filesize + this->pRomHeader->s.public_save_data_size + this->pRomHeader->s.private_save_data_size;
|
||||
if( allsizeMB > METWL_ALLSIZE_MAX_NAND )
|
||||
u32 allsize = filesize + this->pRomHeader->s.public_save_data_size + this->pRomHeader->s.private_save_data_size;
|
||||
if( allsize > METWL_ALLSIZE_MAX_NAND )
|
||||
{
|
||||
this->hErrorList->Add( gcnew RCMrcError(
|
||||
"実ファイルサイズ", METWL_ERRLIST_NORANGE, METWL_ERRLIST_NORANGE,
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
<reserved><begin>160</begin><end>17f</end></reserved>
|
||||
<reserved><begin>15</begin><end>1b</end></reserved>
|
||||
<reserved><begin>99</begin><end>bf</end></reserved>
|
||||
<reserved><begin>1bc</begin><end>1be</end></reserved>
|
||||
<reserved><begin>240</begin><end>2ef</end></reserved>
|
||||
<reserved><begin>378</begin><end>39f</end></reserved>
|
||||
<reserved><begin>3b4</begin><end>f7f</end></reserved>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user