From e151b3d4ef56fb7012508c1a9661812709f99792 Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Thu, 27 Apr 2017 22:17:19 +0200 Subject: [PATCH] Add displaying title IDs for ARM11 exceptions --- source/exceptions.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/exceptions.c b/source/exceptions.c index 6a20d76..013897b 100644 --- a/source/exceptions.c +++ b/source/exceptions.c @@ -155,8 +155,14 @@ void detectAndProcessExceptionDumps(void) if(dumpHeader->processor == 11 && dumpHeader->additionalDataSize != 0) { - char processName[] = "Current process: "; - memcpy(processName + sizeof(processName) - 9, (void *)additionalData, 8); + char processName[45] = "Current process: "; + memcpy(processName + 17, (void *)additionalData, 8); + hexItoa(*((u32 *)additionalData + 3), hexString, 8, true); + concatenateStrings(processName, " ("); + concatenateStrings(processName, hexString); + hexItoa(*((u32 *)additionalData + 2), hexString, 8, true); + concatenateStrings(processName, hexString); + concatenateStrings(processName, ")"); posY = drawString(processName, true, 10, posY + SPACING_Y, COLOR_WHITE); }