mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
カードが挿さっていたら、ポーリングスレッドで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:
parent
2a9928eaba
commit
9e56086052
@ -2101,6 +2101,7 @@ static void MonitorThread(void *arg)
|
|||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
static void CheckCardInsert(BOOL cardExist)
|
static void CheckCardInsert(BOOL cardExist)
|
||||||
{
|
{
|
||||||
|
// カードは挿さっているのに、ランチャーが認識してなかったらメッセージを送る
|
||||||
if(cardExist && s_isPulledOut){
|
if(cardExist && s_isPulledOut){
|
||||||
OSIntrMode enabled = OS_DisableInterrupts();
|
OSIntrMode enabled = OS_DisableInterrupts();
|
||||||
|
|
||||||
@ -2116,6 +2117,21 @@ static void CheckCardInsert(BOOL cardExist)
|
|||||||
|
|
||||||
(void)OS_RestoreInterrupts( enabled );
|
(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);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user