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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user