Lines 1-12
Link Here
|
1 |
--- Telegram/SourceFiles/logs.cpp.orig 2020-02-18 08:28:06 UTC |
1 |
--- Telegram/SourceFiles/logs.cpp.orig 2020-02-18 08:28:06 UTC |
2 |
+++ Telegram/SourceFiles/logs.cpp |
2 |
+++ Telegram/SourceFiles/logs.cpp |
3 |
@@ -342,7 +342,7 @@ void start(not_null<Core::Launcher*> launcher) { |
3 |
@@ -342,7 +342,7 @@ void start(not_null<Core::Launcher*> launcher) { |
4 |
if (cAlphaVersion()) { |
|
|
5 |
workingDirChosen = true; |
4 |
workingDirChosen = true; |
|
|
5 |
} else { |
6 |
|
6 |
|
7 |
-#if defined Q_OS_MAC || defined Q_OS_LINUX |
7 |
-#if defined Q_OS_MAC || defined Q_OS_LINUX |
8 |
+#if defined Q_OS_MAC || defined Q_OS_LINUX || defined Q_OS_FREEBSD |
8 |
+#if defined Q_OS_MAC || defined Q_OS_LINUX || defined Q_OS_FREEBSD |
9 |
} else { |
9 |
|
10 |
if (!cWorkingDir().isEmpty()) { |
10 |
if (!cWorkingDir().isEmpty()) { |
11 |
// This value must come from TelegramForcePortable |
11 |
// This value must come from TelegramForcePortable |
12 |
@@ -357,16 +357,16 @@ void start(not_null<Core::Launcher*> launcher) { |
12 |
@@ -357,16 +357,16 @@ void start(not_null<Core::Launcher*> launcher) { |
Lines 21-41
Link Here
|
21 |
|
21 |
|
22 |
-#elif defined Q_OS_WINRT // Q_OS_MAC || Q_OS_LINUX |
22 |
-#elif defined Q_OS_WINRT // Q_OS_MAC || Q_OS_LINUX |
23 |
+#elif defined Q_OS_WINRT // Q_OS_MAC || Q_OS_LINUX || Q_OS_FREEBSD |
23 |
+#elif defined Q_OS_WINRT // Q_OS_MAC || Q_OS_LINUX || Q_OS_FREEBSD |
24 |
} else { |
24 |
|
25 |
cForceWorkingDir(psAppDataPath()); |
25 |
cForceWorkingDir(psAppDataPath()); |
26 |
workingDirChosen = true; |
26 |
workingDirChosen = true; |
27 |
|
27 |
|
28 |
-#elif defined OS_WIN_STORE // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT |
28 |
-#elif defined OS_WIN_STORE // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT |
29 |
+#elif defined OS_WIN_STORE // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || Q_OS_FREEBSD |
29 |
+#elif defined OS_WIN_STORE // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || Q_OS_FREEBSD |
|
|
30 |
|
30 |
#ifdef _DEBUG |
31 |
#ifdef _DEBUG |
31 |
cForceWorkingDir(cExeDir()); |
32 |
cForceWorkingDir(cExeDir()); |
32 |
#else // _DEBUG |
|
|
33 |
@@ -383,7 +383,7 @@ void start(not_null<Core::Launcher*> launcher) { |
33 |
@@ -383,7 +383,7 @@ void start(not_null<Core::Launcher*> launcher) { |
34 |
workingDirChosen = true; |
34 |
workingDirChosen = true; |
35 |
} |
35 |
} |
36 |
|
36 |
|
37 |
-#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || OS_WIN_STORE |
37 |
-#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || OS_WIN_STORE |
38 |
+#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || OS_WIN_STORE || Q_OS_FREEBSD |
38 |
+#endif // Q_OS_MAC || Q_OS_LINUX || Q_OS_WINRT || OS_WIN_STORE || Q_OS_FREEBSD |
|
|
39 |
|
39 |
} |
40 |
} |
40 |
|
41 |
|
41 |
LogsData = new LogsDataFields(); |
|
|