diff --git a/build/systemMenu_RED/SystemUpdater/ARM9.TWL/src/main.c b/build/systemMenu_RED/SystemUpdater/ARM9.TWL/src/main.c index 24e80975..44d141f5 100644 --- a/build/systemMenu_RED/SystemUpdater/ARM9.TWL/src/main.c +++ b/build/systemMenu_RED/SystemUpdater/ARM9.TWL/src/main.c @@ -33,6 +33,9 @@ 内部定数定義 *---------------------------------------------------------------------------*/ +// リトライ回数 +#define MAX_RETRY_COUNT 10 + static const char* ImportTadFileList[] = { "rom:/data/HNAA.tad", @@ -70,8 +73,10 @@ void TwlMain() { BOOL result; + BOOL hw_info_result; + BOOL nand_firm_result; int tadNum; - int i; + int i,j; OS_Init(); OS_InitArena(); @@ -91,8 +96,6 @@ TwlMain() TP_Init(); RTC_Init(); - InitAllocation(); - KamiPxiInit(); /* 独自PXI初期化 */ // Vブランク割り込み設定 @@ -105,6 +108,8 @@ TwlMain() // initialize file-system FS_Init(FS_DMA_NOT_USE); + InitAllocation(); + // NAMライブラリ初期化 NAM_Init( OS_AllocFromMain, OS_FreeToMain); @@ -151,10 +156,23 @@ TwlMain() result = TRUE; // 全ハードウェア情報の更新 - if (WriteHWInfoFile(OS_GetRegion(), OS_IsForceDisableWireless()) == FALSE) + for (i=0;i