diff --git a/build/debugsoft/AppJumpChecker/src/main.c b/build/debugsoft/AppJumpChecker/src/main.c index 8a603d6c..eb579a08 100644 --- a/build/debugsoft/AppJumpChecker/src/main.c +++ b/build/debugsoft/AppJumpChecker/src/main.c @@ -11,8 +11,8 @@ in whole or in part, without the prior written consent of Nintendo. $Date:: $ - $Rev:$ - $Author:$ + $Rev$ + $Author$ *---------------------------------------------------------------------------*/ #include #include @@ -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(" "); diff --git a/debugsoft/AppJumpChecker/ReadMe_AppJumpChecker.txt b/debugsoft/AppJumpChecker/ReadMe_AppJumpChecker.txt index 76780cc9..e19afe93 100644 --- a/debugsoft/AppJumpChecker/ReadMe_AppJumpChecker.txt +++ b/debugsoft/AppJumpChecker/ReadMe_AppJumpChecker.txt @@ -44,4 +44,5 @@ nishimoto_takashi@nintendo.co.jp <更新履歴>============================================ +2008/08/25 データタイトルへの判定の誤りを修正 2008/08/23 新規追加 diff --git a/debugsoft/AppJumpChecker/appJumpChecker.tad b/debugsoft/AppJumpChecker/appJumpChecker.tad index d82f3612..0bd60ecf 100644 Binary files a/debugsoft/AppJumpChecker/appJumpChecker.tad and b/debugsoft/AppJumpChecker/appJumpChecker.tad differ