From 9e56086052cd4ebb5b9cf82c98c8a53aae098d35 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b08762b0-b915-fc4b-9d8c-17b2551a87ff> Date: Wed, 10 Sep 2008 14:53:21 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=AB=E3=83=BC=E3=83=89=E3=81=8C=E6=8C=BF?= =?UTF-8?q?=E3=81=95=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=82=89=E3=80=81?= =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AA=E3=83=B3=E3=82=B0=E3=82=B9=E3=83=AC?= =?UTF-8?q?=E3=83=83=E3=83=89=E3=81=A7Game=E3=83=A2=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=81=AEID=E8=AA=AD=E3=81=BF=E3=81=97=E3=81=A6=E3=80=81?= =?UTF-8?q?=E7=99=BB=E9=8C=B2=E3=81=97=E3=81=A6=E3=81=8A=E3=81=84=E3=81=9F?= =?UTF-8?q?ID=E3=81=A8=E7=85=A7=E5=90=88=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/branches/20080910_debug_dht_phase1@2484 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/libraries_sysmenu/hotsw/ARM7/src/hotsw.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build/libraries_sysmenu/hotsw/ARM7/src/hotsw.c b/build/libraries_sysmenu/hotsw/ARM7/src/hotsw.c index d4965fc9..4a964924 100644 --- a/build/libraries_sysmenu/hotsw/ARM7/src/hotsw.c +++ b/build/libraries_sysmenu/hotsw/ARM7/src/hotsw.c @@ -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); + + } }