2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Application->Sandbox, Messenger->Application.

This commit is contained in:
John Preston
2019-01-21 17:42:21 +04:00
parent 4111da1dd0
commit a70e72f75d
117 changed files with 1363 additions and 1239 deletions

View File

@@ -233,7 +233,7 @@ NEW LOGGING INSTANCE STARTED!!!\n\
LogsDataFields *LogsData = 0;
typedef QList<QPair<LogDataType, QString> > LogsInMemoryList;
using LogsInMemoryList = QList<QPair<LogDataType, QString>>;
LogsInMemoryList *LogsInMemory = 0;
LogsInMemoryList *DeletedLogsInMemory = SharedMemoryLocation<LogsInMemoryList, 0>();
@@ -320,9 +320,9 @@ bool DebugEnabled() {
}
void start(not_null<Core::Launcher*> launcher) {
Assert(LogsData == 0);
Assert(LogsData == nullptr);
if (!Sandbox::CheckPortableVersionDir()) {
if (!launcher->checkPortableVersionFolder()) {
return;
}
@@ -394,12 +394,12 @@ void start(not_null<Core::Launcher*> launcher) {
QDir().mkpath(cWorkingDir() + qstr("tdata"));
Sandbox::WorkingDirReady();
CrashReports::StartCatching();
launcher->workingFolderReady();
CrashReports::StartCatching(launcher);
if (!LogsData->openMain()) {
delete LogsData;
LogsData = 0;
LogsData = nullptr;
}
LOG(("Launched version: %1, "