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

version 0.5.5 - first release build of os x version

This commit is contained in:
John Preston
2014-06-25 11:25:55 +04:00
parent f90db67c30
commit 0c7baa86a4
23 changed files with 1900 additions and 614 deletions

View File

@@ -69,9 +69,8 @@ void debugLogWrite(const char *file, int32 line, const QString &v) {
debugLogStream->flush();
#ifdef Q_OS_WIN
OutputDebugString(reinterpret_cast<const wchar_t *>(msg.utf16()));
#endif
#ifdef Q_OS_MAC
objc_outputDebugString(msg.toUtf8().constData());
#elif defined Q_OS_MAC
objc_outputDebugString(msg);
#endif
}
}
@@ -118,9 +117,7 @@ void logsInit() {
if (mainLogStream) return;
#ifdef Q_OS_MAC
if (QDir(cWorkingDir()).absolutePath() == qsl("/")) {
cSetWorkingDir(cExeDir());
}
cForceWorkingDir(psAppDataPath());
#endif
QString oldDir = cWorkingDir();