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

@@ -181,6 +181,7 @@ struct GlobalDataStruct {
int32 LangSystem = languageDefault;
QByteArray LastCrashDump;
ConnectionProxy PreLaunchProxy;
};
GlobalDataStruct *GlobalData = 0;
@@ -257,6 +258,8 @@ namespace Global {
break;
}
}
srand((int32)time(NULL));
}
void finish() {
@@ -281,6 +284,7 @@ Type &Ref##Name() { \
DefineGlobalReadOnly(QString, LangSystemISO);
DefineGlobalReadOnly(int32, LangSystem);
DefineGlobal(QByteArray, LastCrashDump);
DefineGlobal(ConnectionProxy, PreLaunchProxy);
}
@@ -291,6 +295,10 @@ SandboxDataStruct *SandboxData = 0;
namespace Sandbox {
bool started() {
return SandboxData != 0;
}
void start() {
SandboxData = new SandboxDataStruct();