mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
nishimoto@PSEG1
AppJumpChecker で、カードアプリにアプリジャンプが出来なかった不具合を修正。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2389 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
5a7e67471f
commit
1066eadc29
@ -192,14 +192,20 @@ void TwlMain(void)
|
||||
if (gKey.trg & PAD_BUTTON_Y)
|
||||
{
|
||||
CARDRomHeader* rh;
|
||||
u64 titleId;
|
||||
// u64 titleId;
|
||||
rh = (CARDRomHeader*)CARD_GetRomHeader();
|
||||
|
||||
if ( rh->game_code != 0)
|
||||
// TWL アプリの場合
|
||||
if ( rh->product_id & 0x03 || rh->product_id & 0x02 ) // 刺さっているカードのロムが TWLアプリ
|
||||
{
|
||||
titleId = (0x00030000 << 32) | rh->game_code;
|
||||
OS_DoApplicationJump( titleId, OS_APP_JUMP_NORMAL);
|
||||
ROM_Header* rh2;
|
||||
rh2 = (ROM_Header*)HW_TWL_CARD_ROM_HEADER_BUF;
|
||||
|
||||
OS_DoApplicationJump( rh2->s.titleID, OS_APP_JUMP_NORMAL);
|
||||
}
|
||||
|
||||
// titleId = (0x00030000 << 32) | rh->game_code;
|
||||
// NITRO カードアプリなら失敗(特殊なものでない限り TitleID が設定されていないため)
|
||||
|
||||
PrintErrMsg("Failed to App Jump.");
|
||||
}
|
||||
@ -375,7 +381,7 @@ static void DrawScene(DataStruct* list)
|
||||
}
|
||||
|
||||
// ノーマルジャンプを許可しているかどうかを取得
|
||||
if ( rh->reserved_A[8] & 0x80 )
|
||||
if ( rh->reserved_A[8] & 0x01 )
|
||||
{
|
||||
PutSubScreen( 0, 2 + TITLE_NUM_CUL + 2, 0xf2, " %s, %s : o", init_code, titleid_lo );
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user