2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

crash catch + report added for Windows version

This commit is contained in:
John Preston
2016-01-30 19:31:10 +03:00
parent 62c28cb58b
commit 8eef239b45
26 changed files with 4057 additions and 110 deletions

View File

@@ -200,6 +200,10 @@ void settingsParseArgs(int argc, char *argv[]) {
gExeDir = psCurrentExeDirectory(argc, argv);
gExeName = psCurrentExeName(argc, argv);
if (argc == 2 && fromUtf8Safe(argv[1]).endsWith(qstr(".telegramcrash")) && QFile(fromUtf8Safe(argv[1])).exists()) {
gLaunchMode = LaunchModeShowCrash;
gStartUrl = fromUtf8Safe(argv[1]);
}
for (int32 i = 0; i < argc; ++i) {
if (string("-testmode") == argv[i]) {
gTestMode = true;