mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
NandInitializerProductonにリージョン変更できなくするオプションを追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2809 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
540d0603f0
commit
98c39c49fc
@ -26,6 +26,10 @@
|
||||
MACRO_FLAGS += -DAUTO_FORMAT_MODE
|
||||
#============================================================================
|
||||
#============================================================================
|
||||
# NandInitializer.iniで指定されたRegionと本体Regionが異なる場合実行を停止します。
|
||||
#MACRO_FLAGS += -DREGION_LIMITATION
|
||||
#============================================================================
|
||||
#============================================================================
|
||||
# ワイヤレスの強制Disableフラグを設定可能にする場合定義します。(要:Make Clean)
|
||||
MACRO_FLAGS += -DUSE_WIRELESS_FORCE_DISABLE_SETTING
|
||||
#============================================================================
|
||||
@ -84,6 +88,7 @@ SRCS = main.c \
|
||||
process_write_data.c \
|
||||
process_mcu.c \
|
||||
process_wireless_setting.c \
|
||||
process_error.c \
|
||||
hwi.c \
|
||||
debugger_hw_reset_control.c \
|
||||
sort_title.c
|
||||
|
||||
@ -33,9 +33,10 @@ extern "C" {
|
||||
//typedef void* (*TpProcess)(void);
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
ЉЦђ”’и‹`
|
||||
ŠÖ<EFBFBD>”<EFBFBD>錾
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
||||
extern BOOL GetNandInitializerSetting(u8* region, u8* wireless, u8* logodemoskip);
|
||||
void* HWInfoProcess0(void);
|
||||
void* HWInfoProcess1(void);
|
||||
void* HWInfoProcess2(void);
|
||||
|
||||
@ -29,6 +29,8 @@
|
||||
#include "keypad.h"
|
||||
#include "kami_pxi.h"
|
||||
#include "process_fade.h"
|
||||
#include "process_hw_info.h"
|
||||
#include "process_error.h"
|
||||
#include "hwi.h"
|
||||
|
||||
#define SCRAMBLE_MASK 0x00406000
|
||||
@ -173,6 +175,22 @@ TwlMain()
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef REGION_LIMITATION
|
||||
{
|
||||
static u8 tempRegion;
|
||||
static u8 tempWireless;
|
||||
static u8 tempLogodemoskip;
|
||||
BOOL result;
|
||||
|
||||
result = GetNandInitializerSetting(&tempRegion, &tempWireless, &tempLogodemoskip);
|
||||
|
||||
if (!result || OS_GetRegion() != tempRegion)
|
||||
{
|
||||
sProcess = errorProcess;
|
||||
}
|
||||
}
|
||||
#endif // REGION_LIMITATION
|
||||
|
||||
while (1)
|
||||
{
|
||||
kamiPadRead();
|
||||
|
||||
@ -80,7 +80,6 @@ static BOOL sLogoDemoSkipForce;
|
||||
static BOOL WriteHWNormalInfoFile( void );
|
||||
static BOOL WriteHWSecureInfoFile( u8 region );
|
||||
//static BOOL DeleteHWInfoFile( void );
|
||||
static BOOL GetNandInitializerSetting(u8* region, u8* wireless, u8* logodemoskip);
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
プロセス関数定義
|
||||
@ -394,7 +393,7 @@ static BOOL DeleteHWInfoFile( void )
|
||||
|
||||
Returns: None.
|
||||
*---------------------------------------------------------------------------*/
|
||||
static BOOL GetNandInitializerSetting(u8* region, u8* wireless, u8* logodemoskip)
|
||||
BOOL GetNandInitializerSetting(u8* region, u8* wireless, u8* logodemoskip)
|
||||
{
|
||||
FSFile file;
|
||||
BOOL open_is_ok;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user