Change: [Win32] unify the crashlog handler with the other OSes (#11236)

While at it, make the crash text a bit more readable, and sync
this with MacOS.
This commit is contained in:
Patric Stout
2023-08-27 19:58:31 +02:00
committed by GitHub
parent f2841e62d9
commit 29a37c2e0b
3 changed files with 9 additions and 32 deletions

View File

@@ -174,9 +174,10 @@ public:
"A serious fault condition occurred in the game. The game will shut down.";
std::string message = fmt::format(
"Please send the generated crash information and the last (auto)save to the developers. "
"This will greatly help debugging. The correct place to do this is https://github.com/OpenTTD/OpenTTD/issues.\n\n"
"Generated file(s):\n{}\n{}\n{}\n{}",
"Please send crash.log, crash.dmp, and crash.sav to the developers. "
"This will greatly help debugging.\n\n"
"https://github.com/OpenTTD/OpenTTD/issues.\n\n"
"{}\n{}\n{}\n{}",
this->crashlog_filename, this->crashdump_filename, this->savegame_filename, this->screenshot_filename);
ShowMacDialog(crash_title, message.c_str(), "Quit");