mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
@@ -52,7 +52,10 @@ static bool OnCrash(const wchar_t * dumpPath,
|
||||
{
|
||||
constexpr const char * DumpFailedMessage = "Failed to create the dump. Nothing left to do. Please file an issue with OpenRCT2 on Github and provide latest save.";
|
||||
printf("%s\n", DumpFailedMessage);
|
||||
MessageBoxA(NULL, DumpFailedMessage, OPENRCT2_NAME, MB_OK | MB_ICONERROR);
|
||||
if (!gOpenRCT2SilentBreakpad)
|
||||
{
|
||||
MessageBoxA(NULL, DumpFailedMessage, OPENRCT2_NAME, MB_OK | MB_ICONERROR);
|
||||
}
|
||||
return succeeded;
|
||||
}
|
||||
|
||||
@@ -77,6 +80,10 @@ static bool OnCrash(const wchar_t * dumpPath,
|
||||
SDL_RWclose(rw);
|
||||
}
|
||||
|
||||
if (gOpenRCT2SilentBreakpad)
|
||||
{
|
||||
return succeeded;
|
||||
}
|
||||
constexpr const wchar_t * MessageFormat = L"A crash has occurred and dump was created at\n%s.\n\nPlease create an issue with OpenRCT2 on Github and provide the dump and save.\n\nVersion: %s\nCommit: %s";
|
||||
wchar_t message[MAX_PATH * 2];
|
||||
swprintf_s(message,
|
||||
|
||||
Reference in New Issue
Block a user