mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
(svn r13701) -Codechange: add some more info in crash.log
This commit is contained in:
parent
71820bf129
commit
9895afb43e
@ -33,6 +33,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#if defined(_MSC_VER) && !defined(WINCE)
|
#if defined(_MSC_VER) && !defined(WINCE)
|
||||||
#include <dbghelp.h>
|
#include <dbghelp.h>
|
||||||
|
#include "strings_func.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static bool _has_console;
|
static bool _has_console;
|
||||||
@ -497,6 +498,8 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
|
|||||||
if (_exception_string)
|
if (_exception_string)
|
||||||
output += sprintf(output, "Reason: %s\r\n", _exception_string);
|
output += sprintf(output, "Reason: %s\r\n", _exception_string);
|
||||||
|
|
||||||
|
output += sprintf(output, "Language: %s\r\n", _dynlang.curr_file);
|
||||||
|
|
||||||
#ifdef _M_AMD64
|
#ifdef _M_AMD64
|
||||||
output += sprintf(output, "Exception %.8X at %.16IX\r\n"
|
output += sprintf(output, "Exception %.8X at %.16IX\r\n"
|
||||||
"Registers:\r\n"
|
"Registers:\r\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user