mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
ARM9からのメッセージでARM7でカードデータを読み出すときに、GameモードのIDチェックを行うコードを追加
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/branches/20080910_debug_dht_phase1@2476 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
d11a21b68a
commit
5b446785b5
@ -539,6 +539,7 @@ static HotSwState LoadCardData(void)
|
|||||||
|
|
||||||
goto finalize;
|
goto finalize;
|
||||||
}
|
}
|
||||||
|
// [Debug]
|
||||||
else{
|
else{
|
||||||
s_gameID = s_cbData.id_gam;
|
s_gameID = s_cbData.id_gam;
|
||||||
}
|
}
|
||||||
@ -921,6 +922,7 @@ static void ReadCardData(u32 src, u32 dest, u32 size)
|
|||||||
// カードのロック
|
// カードのロック
|
||||||
CARD_LockRom(s_CardLockID);
|
CARD_LockRom(s_CardLockID);
|
||||||
|
|
||||||
|
// [Debug]
|
||||||
ReadIDGame(&s_cbData);
|
ReadIDGame(&s_cbData);
|
||||||
if(s_cbData.id_gam != s_gameID){
|
if(s_cbData.id_gam != s_gameID){
|
||||||
state = HOTSW_GAMEMODE_ID_CHECK_ERROR;
|
state = HOTSW_GAMEMODE_ID_CHECK_ERROR;
|
||||||
@ -984,6 +986,7 @@ static void ReadCardData(u32 src, u32 dest, u32 size)
|
|||||||
dest += sendSize;
|
dest += sendSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// [Debug]
|
||||||
ReadIDGame(&s_cbData);
|
ReadIDGame(&s_cbData);
|
||||||
if(s_cbData.id_gam != s_gameID){
|
if(s_cbData.id_gam != s_gameID){
|
||||||
if(state == HOTSW_SUCCESS){
|
if(state == HOTSW_SUCCESS){
|
||||||
@ -1730,6 +1733,9 @@ static void PulledOutSequence(void)
|
|||||||
|
|
||||||
s_isPulledOut = TRUE;
|
s_isPulledOut = TRUE;
|
||||||
|
|
||||||
|
// [Debug]
|
||||||
|
s_gameID = 0;
|
||||||
|
|
||||||
// ワンセグのスリープ時シャットダウン対策を戻す
|
// ワンセグのスリープ時シャットダウン対策を戻す
|
||||||
MCU_EnableDeepSleepToPowerLine( MCU_PWR_LINE_33, TRUE );
|
MCU_EnableDeepSleepToPowerLine( MCU_PWR_LINE_33, TRUE );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user