diff --git a/build/tests/DisplaySystemInformation/ARM9/src/control.c b/build/tests/DisplaySystemInformation/ARM9/src/control.c index 06a66d33..180b3975 100644 --- a/build/tests/DisplaySystemInformation/ARM9/src/control.c +++ b/build/tests/DisplaySystemInformation/ARM9/src/control.c @@ -237,7 +237,7 @@ BOOL control( int *menu, int *line, int *changeLine, int *changeMode ) } } - else if( gAllInfo[*menu][*line].changable ) + else if( *menu < MENU_VERSION && gAllInfo[*menu][*line].changable ) { controlFlag = TRUE; diff --git a/build/tests/DisplaySystemInformation/ARM9/src/viewSystemInfo.c b/build/tests/DisplaySystemInformation/ARM9/src/viewSystemInfo.c index cb1e4fa7..f5514018 100644 --- a/build/tests/DisplaySystemInformation/ARM9/src/viewSystemInfo.c +++ b/build/tests/DisplaySystemInformation/ARM9/src/viewSystemInfo.c @@ -362,6 +362,8 @@ void getParentalInfo( void ) void getOtherInfo( void ) { + // この辺からマクロで生成した分 + int value; value = OS_IsAgreeEULA(); @@ -443,12 +445,14 @@ void getOtherInfo( void ) { u64 buf = LCFG_TSD_GetLastTimeBootSoftTitleID(); + u32 titleID = MI_LoadBE32( &buf ); gAllInfo[MENU_OTHER][OTHER_LCFG_LASTBOOT_ID].isAligned = FALSE; gAllInfo[MENU_OTHER][OTHER_LCFG_LASTBOOT_ID].numLines = 2; gAllInfo[MENU_OTHER][OTHER_LCFG_LASTBOOT_ID].fromLCFG = TRUE; - MI_CpuCopy( &buf, gAllInfo[MENU_OTHER][OTHER_LCFG_LASTBOOT_ID].str.sjis, 8 ); + + MI_CpuCopy( &titleID, gAllInfo[MENU_OTHER][OTHER_LCFG_LASTBOOT_ID].str.sjis, 4 ); gAllInfo[MENU_OTHER][OTHER_LCFG_LASTBOOT_ID].str.sjis[8] = '\0'; } }