From 8e1437ad86c47c1e98693773507112fb44c2d5e4 Mon Sep 17 00:00:00 2001 From: Ash Date: Sun, 15 Apr 2018 17:19:39 +1000 Subject: [PATCH] [WiiU] Add build information to exception handler --- wiiu/system/exception_handler.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wiiu/system/exception_handler.c b/wiiu/system/exception_handler.c index d6138fac00..2caa0779c7 100644 --- a/wiiu/system/exception_handler.c +++ b/wiiu/system/exception_handler.c @@ -22,6 +22,8 @@ #include #include "wiiu_dbg.h" #include "exception_handler.h" +#include "version.h" +#include "version_git.h" /* Settings */ #define NUM_STACK_TRACE_LINES 5 @@ -182,6 +184,11 @@ void __attribute__((__noreturn__)) exception_cb(OSContext* ctx, OSExceptionType else buf_add("Stack pointer invalid. Could not trace further.\n"); +#ifdef HAVE_GIT_VERSION + buf_add("RetroArch " PACKAGE_VERSION " (%s) built " __DATE__, retroarch_git_version); +#else + buf_add("RetroArch " PACKAGE_VERSION " built " __DATE__); +#endif OSFatal(exception_msgbuf); for (;;) {} }