Improve Windows exception strings

This commit is contained in:
Kp 2019-02-02 18:36:39 +00:00
parent 1037b2c296
commit 4e1bbc0759

View file

@ -456,10 +456,11 @@ static void write_exception_logs(const uint8_t *const sp)
path_buffer path_dump;
#define DXX_PATH_DUMP_FORMAT_STRING L"%s%s\n"
#define DXX_PATH_DUMP_ARGUMENTS \
, path_dump.front() ? L"\nIf possible, make available the binary file:\n " : L"" \
, path_dump.front() ? L"If possible, make available the binary file:\n " : L"No dump file could be generated." \
, path_dump.data()
#else
#define DXX_PATH_DUMP_FORMAT_STRING
#define DXX_PATH_DUMP_FORMAT_STRING \
L"Dump file generation is not enabled in this build.\n"
#define DXX_PATH_DUMP_ARGUMENTS
#endif
path_buffer path_stack;
@ -494,7 +495,7 @@ L"Rebirth encountered a fatal error. Please report this to the developers.\n"
L"\nInclude in your report:\n"
L"%s%hs%s"
L"* The level(s) played this session, including download URLs for any add-on missions\n"
L"%s%s\n"
L"%s%s\n\n"
DXX_PATH_DUMP_FORMAT_STRING
L"\nTo the extent possible, provide steps to reproduce, starting from the game main menu.",
what.empty() ? L"" : L"* The exception message text:\n \"", what.c_str(), what.empty() ? L"" : L"\"\n",