equal
deleted
inserted
replaced
20 #include "win32.h" |
20 #include "win32.h" |
21 #include <ctype.h> |
21 #include <ctype.h> |
22 |
22 |
23 static bool _has_console; |
23 static bool _has_console; |
24 |
24 |
25 #if defined(__MINGW32__) || defined(__CYGWIN__) |
|
26 #define __TIMESTAMP__ __DATE__ __TIME__ |
|
27 #endif |
|
28 |
|
29 #if defined(__MINGW32__) |
25 #if defined(__MINGW32__) |
30 #include <stdint.h> |
26 #include <stdint.h> |
31 #endif |
27 #endif |
32 |
28 |
33 static bool cursor_visible = true; |
29 static bool cursor_visible = true; |
443 _crash_msg = output = LocalAlloc(LMEM_FIXED, 8192); |
439 _crash_msg = output = LocalAlloc(LMEM_FIXED, 8192); |
444 |
440 |
445 { |
441 { |
446 SYSTEMTIME time; |
442 SYSTEMTIME time; |
447 GetLocalTime(&time); |
443 GetLocalTime(&time); |
448 output += sprintf(output, |
444 output += snprintf(output, 8192, |
449 "*** OpenTTD Crash Report ***\r\n" |
445 "*** OpenTTD Crash Report ***\r\n" |
450 "Date: %d-%.2d-%.2d %.2d:%.2d:%.2d\r\n" |
446 "Date: %d-%.2d-%.2d %.2d:%.2d:%.2d\r\n" |
451 "Build: %s built on " __TIMESTAMP__ "\r\n", |
447 "Build: %s built on " __DATE__ " " __TIME__ "\r\n", |
452 time.wYear, |
448 time.wYear, |
453 time.wMonth, |
449 time.wMonth, |
454 time.wDay, |
450 time.wDay, |
455 time.wHour, |
451 time.wHour, |
456 time.wMinute, |
452 time.wMinute, |