From f3b643cb720268c8f5754ecaada6419f503dddeb Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b08762b0-b915-fc4b-9d8c-17b2551a87ff> Date: Thu, 3 Sep 2009 00:35:55 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B0=91=E3=81=97=E4=BF=AE=E6=AD=A3?= 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/trunk@2909 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- .../TitleHashChecker/ARM9.TWL/src/main.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/build/tests/TitleHashChecker/ARM9.TWL/src/main.c b/build/tests/TitleHashChecker/ARM9.TWL/src/main.c index 288648c9..127c5f99 100644 --- a/build/tests/TitleHashChecker/ARM9.TWL/src/main.c +++ b/build/tests/TitleHashChecker/ARM9.TWL/src/main.c @@ -127,9 +127,9 @@ static const u32 TitleIDTable[OUTPUT_SORT_TITLE_NUM] = { 0x484e4b00, // 9.HNK* サウンド 0x484e4c00, //10.HNL* バージョンデータ NAND_FIRM_MAGIC_CODE, //11.---- NANDファーム - 0x344e4641, //12.4NFA Nand Filer + 0x344e4600, //12.4NF* Nand Filer SHARED_FONT_MAGIC_CODE, //13.---- フォント - 0x34544e41 //14.4TNA TwlNmenu + 0x34544e00 //14.4TN* TwlNmenu }; /*---------------------------------------------------------------------------* Prototype @@ -207,7 +207,9 @@ void TwlMain(void) SortList( gDataList ); +#ifndef HASH_CRC_CLCU_SKIP OutputHashDataForSD( gDataList ); +#endif while(TRUE) { @@ -633,8 +635,6 @@ static BOOL GetAppPath(DataStruct* list, char* path_buf) *---------------------------------------------------------------------------*/ static BOOL OutputHashDataForSD( DataStruct* list ) { -#pragma unused(list) - BOOL retval = TRUE; FSFile file; u32 i; @@ -1111,19 +1111,19 @@ static void SortList( DataStruct* list ) count++; } } - - // 降順に並び替え + + // 降順に並び替え p = (DataStruct *)tmpList; for(i=sort_count; i=i; j--) + for(j=(u32)(gNandAppNum-1); j>i; j--) { - if( (u32)p[j].id > (u32)p[j+1].id ) + if( (u32)p[j].id < (u32)p[j-1].id ) { MI_CpuCopy8( &p[j], &buf, sizeof(DataStruct) ); - MI_CpuCopy8( &p[j+1], &p[j], sizeof(DataStruct) ); - MI_CpuCopy8( &buf, &p[j+1], sizeof(DataStruct) ); + MI_CpuCopy8( &p[j-1], &p[j], sizeof(DataStruct) ); + MI_CpuCopy8( &buf, &p[j-1], sizeof(DataStruct) ); } } }