mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
(更新:Akabane Jumpei)
TWL対応アプリのみリージョンチェックを行うように修正 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1866 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
c1ecb8f6de
commit
69fb53b468
@ -404,17 +404,17 @@ static HotSwState LoadCardData(void)
|
||||
}
|
||||
SYSMi_GetWork()->gameCommondParam = s_cbData.gameCommondParam;
|
||||
|
||||
|
||||
|
||||
// CRCチェック
|
||||
if( !UTL_CheckAppCRC16( &s_cbData.pBootSegBuf->rh.s ) ) {
|
||||
retval = (retval == HOTSW_SUCCESS) ? HOTSW_CRC_CHECK_ERROR : retval;
|
||||
}
|
||||
|
||||
// リージョンチェック
|
||||
if( !UTL_CheckAppRegion( s_cbData.pBootSegBuf->rh.s.card_region_bitmap ) ) {
|
||||
retval = (retval == HOTSW_SUCCESS) ? HOWSW_REGION_CHECK_ERROR : retval;
|
||||
}
|
||||
|
||||
if(s_cbData.pBootSegBuf->rh.s.platform_code & 0x02){
|
||||
// リージョンチェック
|
||||
if( !UTL_CheckAppRegion( s_cbData.pBootSegBuf->rh.s.card_region_bitmap ) ) {
|
||||
retval = (retval == HOTSW_SUCCESS) ? HOWSW_REGION_CHECK_ERROR : retval;
|
||||
}
|
||||
}
|
||||
|
||||
// アプリジャンプのデバッグ時にROMエミュレーション情報だけ必要な場合
|
||||
if(SYSMi_GetWork()->flags.hotsw.isLoadRomEmuOnly){
|
||||
|
||||
@ -477,12 +477,14 @@ static void AMNi_getAndAddNandTitleData( NAMTitleId titleID, BOOL readShowData )
|
||||
return;
|
||||
}
|
||||
|
||||
// ROMヘッダのリージョンチェックとCRCチェックを行い、不正なアプリは無視する。
|
||||
if( !UTL_CheckAppRegion( s_AllRomHeaderArray[rhArrayLen].card_region_bitmap ) ) {
|
||||
OS_TPrintf( "Region Check NG : %llx\n", titleID );
|
||||
FS_CloseFile(file);
|
||||
return;
|
||||
}
|
||||
if(s_AllRomHeaderArray[rhArrayLen].platform_code & 0x02){
|
||||
// ROMヘッダのリージョンチェックとCRCチェックを行い、不正なアプリは無視する。
|
||||
if( !UTL_CheckAppRegion( s_AllRomHeaderArray[rhArrayLen].card_region_bitmap ) ) {
|
||||
OS_TPrintf( "Region Check NG : %llx\n", titleID );
|
||||
FS_CloseFile(file);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if( !UTL_CheckAppCRC16( &s_AllRomHeaderArray[rhArrayLen] ) ) {
|
||||
OS_TPrintf( "CRC16 Check NG : %llx\n", titleID );
|
||||
FS_CloseFile(file);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user