From 196aacda84335695b480ad1ca628a9b0f30cf549 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Tue, 5 Mar 2024 01:07:09 +0200 Subject: [PATCH] Update DisplayProcessScreen function to include executable name --- core/panic/ui.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/panic/ui.cpp b/core/panic/ui.cpp index ed29102..630b039 100644 --- a/core/panic/ui.cpp +++ b/core/panic/ui.cpp @@ -606,11 +606,14 @@ nsa void DisplayProcessScreen(CPU::ExceptionFrame *Frame, bool IgnoreReady = tru } } - ExPrint("\eAAAAAA-> \eFAFAFA%.*s%s\e8A8A8A(%ld) \e%s%s\n", + ExPrint("\eAAAAAA-> \eFAFAFA%.*s%s\e8A8A8A(%ld) \e%s%s \e8A8A8A[exe: %s]\n", textLimit, Process->Name, strlen(Process->Name) > textLimit ? "\e8A8A8A..." : "", Process->ID, StatusColor[Process->State.load()], - StatusString[Process->State.load()]); + StatusString[Process->State.load()], + Process->Executable + ? Process->Executable->Name + : "none"); bool tRdy = false; foreach (auto Thread in Process->Threads)