mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
AppJumpChecker について、
データタイトル に対する誤判定を修正 nishimoto @ PSEG1 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2257 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
e29a9f4995
commit
182c05ccdb
@ -11,8 +11,8 @@
|
||||
in whole or in part, without the prior written consent of Nintendo.
|
||||
|
||||
$Date:: $
|
||||
$Rev:$
|
||||
$Author:$
|
||||
$Rev$
|
||||
$Author$
|
||||
*---------------------------------------------------------------------------*/
|
||||
#include <twl/nam.h>
|
||||
#include <twl/os/common/format_rom.h>
|
||||
@ -232,35 +232,44 @@ static BOOL GetDataStruct(DataStruct* list)
|
||||
break;
|
||||
}
|
||||
|
||||
// TitleID の格納
|
||||
// TitleID の格納
|
||||
list->id = titleIdList[i];
|
||||
|
||||
// ノーマルジャンプをされるのを許可するかを表すフラグの取得
|
||||
// アプリ本体へのパスを取得
|
||||
if ( NAM_GetTitleBootContentPath(pathbuf, list->id) != NAM_OK )
|
||||
// ノーマルジャンプをされるのを許可するかを表すフラグの取得
|
||||
// TitleID を見て、タイトル種別がデータタイトルならば
|
||||
// そもそも ROMヘッダが存在しない、アプリジャンプをする必要もない
|
||||
if ( !NAM_IsDataTitle(list->id) )
|
||||
{
|
||||
PrintErrMsg("GetContentPath failed.");
|
||||
return FALSE;
|
||||
}
|
||||
// アプリ本体へのパスを取得
|
||||
if ( NAM_GetTitleBootContentPath(pathbuf, list->id) != NAM_OK )
|
||||
{
|
||||
PrintErrMsg("GetContentPath failed.");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// アプリのファイルオープン
|
||||
FS_InitFile(&fp);
|
||||
if ( !FS_OpenFileEx(&fp, pathbuf, FS_FILEMODE_R) )
|
||||
// アプリのファイルオープン
|
||||
FS_InitFile(&fp);
|
||||
if ( !FS_OpenFileEx(&fp, pathbuf, FS_FILEMODE_R) )
|
||||
{
|
||||
// 失敗時はエラーコード出力で終了
|
||||
PrintErrMsg("FS_OpenFileEx failed.");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ( -1 == FS_ReadFile(&fp, &rh, sizeof(ROM_Header_Short) ))
|
||||
{
|
||||
PrintErrMsg("FS_ReadFile failed.");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
list->normaljmp_flag = rh.permit_landing_normal_jump;
|
||||
|
||||
FS_CloseFile(&fp);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 失敗時はエラーコード出力で終了
|
||||
PrintErrMsg("FS_OpenFileEx failed.");
|
||||
return FALSE;
|
||||
list->normaljmp_flag = FALSE;
|
||||
}
|
||||
|
||||
if ( -1 == FS_ReadFile(&fp, &rh, sizeof(ROM_Header_Short) ))
|
||||
{
|
||||
PrintErrMsg("FS_ReadFile failed.");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
list->normaljmp_flag = rh.permit_landing_normal_jump;
|
||||
|
||||
FS_CloseFile(&fp);
|
||||
}
|
||||
|
||||
PrintErrMsg(" ");
|
||||
|
||||
@ -44,4 +44,5 @@ nishimoto_takashi@nintendo.co.jp
|
||||
|
||||
|
||||
<EFBFBD><EFBFBD>ŤX<EFBFBD>V—š—đ<EFBFBD>„============================================
|
||||
2008/08/25 データタイトルへの判定の誤りを修正
|
||||
2008/08/23 <09>V‹K’ljÁ
|
||||
|
||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user