1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Add --silent-breakpad switch, fixes #3535 (#3544)

This commit is contained in:
janisozaur
2016-05-11 13:25:21 +02:00
committed by Ted John
parent 62a7dd927e
commit deeafc5a60
4 changed files with 23 additions and 2 deletions

View File

@@ -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,