From 8d8da5d5af438f6dc3bb71a5d392840ff3e319da Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 7 May 2025 20:54:01 +0200 Subject: [PATCH] Log RPCS3 exit code --- rpcs3/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index 8666b9c49f..1ea2321804 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -1,6 +1,11 @@ +#include "stdafx.h" #include "rpcs3.h" +LOG_CHANNEL(sys_log, "SYS"); + int main(int argc, char** argv) { - return run_rpcs3(argc, argv); + const int exit_code = run_rpcs3(argc, argv); + sys_log.notice("RPCS3 terminated with exit code %d", exit_code); + return exit_code; }