[WiiU] Add build information to exception handler

This commit is contained in:
Ash 2018-04-15 17:19:39 +10:00
parent 79071bd11b
commit 8e1437ad86
No known key found for this signature in database
GPG Key ID: 461BAD1D1531729D

View File

@ -22,6 +22,8 @@
#include <wiiu/os.h>
#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 (;;) {}
}