diff --git a/source/arm9/debug.c b/source/arm9/debug.c index 8e533a9..2db0074 100644 --- a/source/arm9/debug.c +++ b/source/arm9/debug.c @@ -50,10 +50,8 @@ { register u32 lr __asm__("lr"); - //consoleInit(0, NULL, true); + enterCriticalSection(); - //ee_printf("\x1b[41m\x1b[0J\x1b[9C****PANIC!!!****\n\nlr = 0x%08" PRIX32 "\n", lr); - fsUnmountAll(); //devs_close(); @@ -71,10 +69,7 @@ { register u32 lr __asm__("lr"); - /*consoleInit(0, NULL, true); - - ee_printf("\x1b[41m\x1b[0J\x1b[9C****PANIC!!!****\n\nlr = 0x%08" PRIX32 "\n", lr); - ee_printf("\nERROR MESSAGE:\n%s\n", msg);*/ + enterCriticalSection(); fsUnmountAll(); //devs_close();