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 (;;) {} }