diff --git a/build/libraries_sysmenu/Makefile b/build/libraries_sysmenu/Makefile index ddc27af0..be74640d 100644 --- a/build/libraries_sysmenu/Makefile +++ b/build/libraries_sysmenu/Makefile @@ -34,6 +34,7 @@ SUBDIRS = reloc_info \ util \ dht \ wds \ + errorLog \ TwlWireless #---------------------------------------------------------------------------- diff --git a/build/systemMenu_RED/Launcher/ARM9/Makefile b/build/systemMenu_RED/Launcher/ARM9/Makefile index e3a29dd4..e181c924 100644 --- a/build/systemMenu_RED/Launcher/ARM9/Makefile +++ b/build/systemMenu_RED/Launcher/ARM9/Makefile @@ -93,6 +93,7 @@ SYSMENU_LIBS = \ libsysmenu$(TWL_LIBSUFFIX).a \ libsysmmcu$(TWL_LIBSUFFIX).a \ libboot$(TWL_LIBSUFFIX).a \ + liberrorlog$(TWL_LIBSUFFIX).a \ libds$(TWL_LIBSUFFIX).a \ libhotsw$(TWL_LIBSUFFIX).a \ libdht$(TWL_LIBSUFFIX).a \ diff --git a/build/systemMenu_RED/Launcher/ARM9/src/main.c b/build/systemMenu_RED/Launcher/ARM9/src/main.c index 559ba258..04d5ca87 100644 --- a/build/systemMenu_RED/Launcher/ARM9/src/main.c +++ b/build/systemMenu_RED/Launcher/ARM9/src/main.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "launcher.h" #include "misc.h" #include "logoDemo.h" @@ -661,6 +662,7 @@ static void PrintError( void ) G2_ChangeBlendAlpha( 0, 31 ); error_code = UTL_GetFatalError(); PrintfSJIS( 2, 25, TXT_COLOR_RED,"ERROR! - 0x%0.16x\n", error_code ); + EL_WriteErrorLog(error_code); for(l=0;l<64;l++) { if( error_code & 0x1 )