カードが挿さっていたら、ポーリングスレッドでGameモードのID読みして、登録しておいたIDと照合する

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/branches/20080910_debug_dht_phase1@2484 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
(no author) 2008-09-10 14:53:21 +00:00
parent 2a9928eaba
commit 9e56086052

View File

@ -2101,6 +2101,7 @@ static void MonitorThread(void *arg)
*---------------------------------------------------------------------------*/
static void CheckCardInsert(BOOL cardExist)
{
// カードは挿さっているのに、ランチャーが認識してなかったらメッセージを送る
if(cardExist && s_isPulledOut){
OSIntrMode enabled = OS_DisableInterrupts();
@ -2116,6 +2117,21 @@ static void CheckCardInsert(BOOL cardExist)
(void)OS_RestoreInterrupts( enabled );
}
// カードは挿さっていて、ランチャーが認識していたらGameモードのID読みをして、抜けてないか調べる
else if(cardExist && !s_isPulledOut && !SYSMi_GetWork()->flags.hotsw.isBusyHotSW){
// カードのロック
CARD_LockRom(s_CardLockID);
ReadIDGame(&s_cbData);
if(s_cbData.id_gam != s_gameID){
McPowerOff();
}
// カードのロック開放(※ロックIDは開放せずに持ち続ける)
CARD_UnlockRom(s_CardLockID);
}
}