スリープ突入条件がORからANDへ変更されていたのを修正。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1468 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
nakasima 2008-05-22 08:53:14 +00:00
parent efb3245196
commit 39f9700fae
2 changed files with 4 additions and 7 deletions

View File

@ -91,8 +91,8 @@ void UTL_GoSleepMode( void )
return;
}
// デバッガ起動時にはスリープに入らない
if ( OSi_DetectDebugger() & OS_CONSOLE_TWLDEBUGGER )
// デバッガ接続中だけはスリープに入らない(蓋閉じでもデバッガが起動するように)
if ( !SYSM_IsRunOnDebugger() || (OSi_DetectDebugger() & OS_CONSOLE_TWLDEBUGGER) )
{
// カード抜け無検出設定
// TWLではゲームカードの再ロードが可能なため

View File

@ -340,11 +340,8 @@ void TwlMain( void )
(void)SND_FlushCommand(SND_COMMAND_NOBLOCK);
#ifndef DISABLE_SLEEP
// デバッガ動作時はスリープしない
if( !SYSM_IsRunOnDebugger() ) {
// スリープモードへの遷移(蓋閉じ判定はデフォルトで行う)
UTL_GoSleepMode();
}
// スリープモードへの遷移(蓋開き状態とデバッガ接続中のキャンセルはデフォルトで行う)
UTL_GoSleepMode();
#endif // DISABLE_SLEEP
}
}