mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
マスタエディタ:共通ヘッダファイルにビルドスイッチと定数を宣言。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2393 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
b11959ec39
commit
a02a01e2ac
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
#include "srl.h"
|
#include "srl.h"
|
||||||
#include "deliverable.h"
|
#include "deliverable.h"
|
||||||
#include "crc_whole.h"
|
#include "crc_whole.h"
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
#include "srl.h"
|
#include "srl.h"
|
||||||
|
|
||||||
using namespace System;
|
using namespace System;
|
||||||
|
|||||||
@ -253,6 +253,10 @@
|
|||||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||||
>
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\common.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\crc_whole.h"
|
RelativePath=".\crc_whole.h"
|
||||||
>
|
>
|
||||||
|
|||||||
23
build/tools/MasterEditorTWL/MasterEditorTWL/common.h
Normal file
23
build/tools/MasterEditorTWL/MasterEditorTWL/common.h
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
// ビルドスイッチ
|
||||||
|
#define METWL_VER_APPTYPE_USER
|
||||||
|
//#define METWL_VER_APPTYPE_SYSTEM
|
||||||
|
//#define METWL_VER_APPTYPE_SECURE
|
||||||
|
//#define METWL_VER_APPTYPE_LAUNCHER
|
||||||
|
|
||||||
|
//#define METWL_WHETHER_PLATFORM_CHECK // プラットフォームがTWL対応以外かどうかをチェックする
|
||||||
|
//#define METWL_WHETHER_SIGN_DECRYPT // 署名を外してダイジェストをベリファイする
|
||||||
|
#define METWL_WHETHER_MRC // MRC機能を含めるか
|
||||||
|
|
||||||
|
// 定数
|
||||||
|
#define METWL_ERRLIST_NORANGE 0 // エラーのアドレス範囲を指定しないことを表す特別な値
|
||||||
|
#define METWL_ROMSIZE_MIN 256 // 最小のデバイス容量 256Mbit
|
||||||
|
#define METWL_ROMSIZE_MAX 4096 // 最大の.. 4Gbit
|
||||||
|
#define METWL_MASK_REGION_JAPAN 0x00000001
|
||||||
|
#define METWL_MASK_REGION_AMERICA 0x00000002
|
||||||
|
#define METWL_MASK_REGION_EUROPE 0x00000004
|
||||||
|
#define METWL_MASK_REGION_AUSTRALIA 0x00000008
|
||||||
|
#define METWL_MASK_REGION_CHINA 0x00000010
|
||||||
|
#define METWL_MASK_REGION_KOREA 0x00000020
|
||||||
|
#define METWL_MASK_REGION_ALL 0xffffffff
|
||||||
@ -1,6 +1,7 @@
|
|||||||
// crc_whole.h の実装
|
// crc_whole.h の実装
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
#include "common.h"
|
||||||
#include "crc_whole.h"
|
#include "crc_whole.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
// deliverable.h のクラス実装
|
// deliverable.h のクラス実装
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
#include "common.h"
|
||||||
#include "srl.h"
|
#include "srl.h"
|
||||||
#include "deliverable.h"
|
#include "deliverable.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
// 書類クラスの宣言
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
#include <twl/types.h>
|
#include <twl/types.h>
|
||||||
#include <twl/os/common/format_rom.h>
|
#include <twl/os/common/format_rom.h>
|
||||||
|
#include "common.h"
|
||||||
#include "srl.h"
|
#include "srl.h"
|
||||||
|
|
||||||
namespace MasterEditorTWL
|
namespace MasterEditorTWL
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include <twl/types.h>
|
#include <twl/types.h>
|
||||||
|
#include "common.h"
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
|
|
||||||
namespace MasterEditorTWL
|
namespace MasterEditorTWL
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
// srl.h のクラス実装
|
// srl.h のクラス実装
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
#include "common.h"
|
||||||
#include "srl.h"
|
#include "srl.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
@ -949,7 +950,7 @@ ECSrlResult RCSrl::mrcTWL( FILE *fp )
|
|||||||
{
|
{
|
||||||
this->hWarnList->Add( gcnew RCMRCError(
|
this->hWarnList->Add( gcnew RCMRCError(
|
||||||
"アプリ種別", 0x230, 0x237, "システムアプリではありません。",
|
"アプリ種別", 0x230, 0x237, "システムアプリではありません。",
|
||||||
"Application Type", "Not SYSTEM application.", false ) );
|
"Application Type", "Not SYSTEM application.", false, true ) );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef METWL_VER_APPTYPE_SECURE
|
#ifdef METWL_VER_APPTYPE_SECURE
|
||||||
@ -957,7 +958,7 @@ ECSrlResult RCSrl::mrcTWL( FILE *fp )
|
|||||||
{
|
{
|
||||||
this->hWarnList->Add( gcnew RCMRCError(
|
this->hWarnList->Add( gcnew RCMRCError(
|
||||||
"アプリ種別", 0x230, 0x237, "セキュアアプリではありません。",
|
"アプリ種別", 0x230, 0x237, "セキュアアプリではありません。",
|
||||||
"Application Type", "Not SECURE application.", false ) );
|
"Application Type", "Not SECURE application.", false, true ) );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef METWL_VER_APPTYPE_LAUNCHER
|
#ifdef METWL_VER_APPTYPE_LAUNCHER
|
||||||
@ -965,7 +966,7 @@ ECSrlResult RCSrl::mrcTWL( FILE *fp )
|
|||||||
{
|
{
|
||||||
this->hWarnList->Add( gcnew RCMRCError(
|
this->hWarnList->Add( gcnew RCMRCError(
|
||||||
"アプリ種別", 0x230, 0x237, "ランチャーアプリではありません。",
|
"アプリ種別", 0x230, 0x237, "ランチャーアプリではありません。",
|
||||||
"Application Type", "Not LAUNCHER application.", false ) );
|
"Application Type", "Not LAUNCHER application.", false, true ) );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} // アプリ種別のチェック
|
} // アプリ種別のチェック
|
||||||
@ -1115,7 +1116,7 @@ System::Boolean RCSrl::mrcRegion( System::UInt32 region )
|
|||||||
{
|
{
|
||||||
this->hErrorList->Add( gcnew RCMRCError(
|
this->hErrorList->Add( gcnew RCMRCError(
|
||||||
"カードリージョン", 0x1b0, 0x1b3, "仕向地の組み合わせが不正です。本ツールを用いて修正できます。",
|
"カードリージョン", 0x1b0, 0x1b3, "仕向地の組み合わせが不正です。本ツールを用いて修正できます。",
|
||||||
"Card Region", "Illigal Region. This tool can modify this information.", true ) );
|
"Card Region", "Illigal Region. This tool can modify this information.", true, true ) );
|
||||||
bRegionResult = false;
|
bRegionResult = false;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
// ROMデータ(SRL)クラスと関連クラスの宣言
|
// ROMデータ(SRL)クラスと関連クラスの宣言
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
#include <twl/types.h>
|
#include <twl/types.h>
|
||||||
#include <twl/os/common/format_rom.h>
|
#include <twl/os/common/format_rom.h>
|
||||||
#include <twl/os/common/ownerInfoEx.h>
|
#include <twl/os/common/ownerInfoEx.h>
|
||||||
|
|||||||
@ -4,25 +4,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// TODO: プログラムに必要な追加ヘッダーをここで参照してください。
|
// TODO: プログラムに必要な追加ヘッダーをここで参照してください。
|
||||||
|
|
||||||
// ビルドオプション
|
|
||||||
#define METWL_VER_APPTYPE_USER
|
|
||||||
//#define METWL_VER_APPTYPE_SYSTEM
|
|
||||||
//#define METWL_VER_APPTYPE_SECURE
|
|
||||||
//#define METWL_VER_APPTYPE_LAUNCHER
|
|
||||||
|
|
||||||
//#define METWL_WHETHER_PLATFORM_CHECK // プラットフォームがTWL対応以外かどうかをチェックする
|
|
||||||
//#define METWL_WHETHER_SIGN_DECRYPT // 署名を外してダイジェストをベリファイする
|
|
||||||
#define METWL_WHETHER_MRC // MRC機能を含めるか
|
|
||||||
|
|
||||||
// 宣言
|
|
||||||
#define METWL_ERRLIST_NORANGE 0 // エラーのアドレス範囲を指定しないことを表す特別な値
|
|
||||||
#define METWL_ROMSIZE_MIN 256 // 最小のデバイス容量 256Mbit
|
|
||||||
#define METWL_ROMSIZE_MAX 4096 // 最大の.. 4Gbit
|
|
||||||
#define METWL_MASK_REGION_JAPAN 0x00000001
|
|
||||||
#define METWL_MASK_REGION_AMERICA 0x00000002
|
|
||||||
#define METWL_MASK_REGION_EUROPE 0x00000004
|
|
||||||
#define METWL_MASK_REGION_AUSTRALIA 0x00000008
|
|
||||||
#define METWL_MASK_REGION_CHINA 0x00000010
|
|
||||||
#define METWL_MASK_REGION_KOREA 0x00000020
|
|
||||||
#define METWL_MASK_REGION_ALL 0xffffffff
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
// utility.h の実装
|
// utility.h の実装
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
#include "common.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user