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;
|
SYSMi_GetWork()->gameCommondParam = s_cbData.gameCommondParam;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// CRCチェック
|
// CRCチェック
|
||||||
if( !UTL_CheckAppCRC16( &s_cbData.pBootSegBuf->rh.s ) ) {
|
if( !UTL_CheckAppCRC16( &s_cbData.pBootSegBuf->rh.s ) ) {
|
||||||
retval = (retval == HOTSW_SUCCESS) ? HOTSW_CRC_CHECK_ERROR : retval;
|
retval = (retval == HOTSW_SUCCESS) ? HOTSW_CRC_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;
|
if( !UTL_CheckAppRegion( s_cbData.pBootSegBuf->rh.s.card_region_bitmap ) ) {
|
||||||
}
|
retval = (retval == HOTSW_SUCCESS) ? HOWSW_REGION_CHECK_ERROR : retval;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// アプリジャンプのデバッグ時にROMエミュレーション情報だけ必要な場合
|
// アプリジャンプのデバッグ時にROMエミュレーション情報だけ必要な場合
|
||||||
if(SYSMi_GetWork()->flags.hotsw.isLoadRomEmuOnly){
|
if(SYSMi_GetWork()->flags.hotsw.isLoadRomEmuOnly){
|
||||||
|
|||||||
@ -477,12 +477,14 @@ static void AMNi_getAndAddNandTitleData( NAMTitleId titleID, BOOL readShowData )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ROMヘッダのリージョンチェックとCRCチェックを行い、不正なアプリは無視する。
|
if(s_AllRomHeaderArray[rhArrayLen].platform_code & 0x02){
|
||||||
if( !UTL_CheckAppRegion( s_AllRomHeaderArray[rhArrayLen].card_region_bitmap ) ) {
|
// ROMヘッダのリージョンチェックとCRCチェックを行い、不正なアプリは無視する。
|
||||||
OS_TPrintf( "Region Check NG : %llx\n", titleID );
|
if( !UTL_CheckAppRegion( s_AllRomHeaderArray[rhArrayLen].card_region_bitmap ) ) {
|
||||||
FS_CloseFile(file);
|
OS_TPrintf( "Region Check NG : %llx\n", titleID );
|
||||||
return;
|
FS_CloseFile(file);
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
if( !UTL_CheckAppCRC16( &s_AllRomHeaderArray[rhArrayLen] ) ) {
|
if( !UTL_CheckAppCRC16( &s_AllRomHeaderArray[rhArrayLen] ) ) {
|
||||||
OS_TPrintf( "CRC16 Check NG : %llx\n", titleID );
|
OS_TPrintf( "CRC16 Check NG : %llx\n", titleID );
|
||||||
FS_CloseFile(file);
|
FS_CloseFile(file);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user