2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Fix OpenAL device closing in calls and voice chats.

Also add 64 bit Windows info in crash platform string.
This commit is contained in:
John Preston
2021-01-28 19:30:47 +04:00
parent 9a0023cc99
commit fbf4f912c6
4 changed files with 35 additions and 6 deletions

View File

@@ -88,8 +88,10 @@ void AboutBox::resizeEvent(QResizeEvent *e) {
void AboutBox::showVersionHistory() { void AboutBox::showVersionHistory() {
if (cRealAlphaVersion()) { if (cRealAlphaVersion()) {
auto url = qsl("https://tdesktop.com/"); auto url = qsl("https://tdesktop.com/");
if (Platform::IsWindows()) { if (Platform::IsWindows32Bit()) {
url += qsl("win/%1.zip"); url += qsl("win/%1.zip");
} else if (Platform::IsWindows64Bit()) {
url += qsl("win64/%1.zip");
} else if (Platform::IsOSXBuild()) { } else if (Platform::IsOSXBuild()) {
url += qsl("osx/%1.zip"); url += qsl("osx/%1.zip");
} else if (Platform::IsMac()) { } else if (Platform::IsMac()) {
@@ -143,5 +145,8 @@ QString currentVersionText() {
} else if (AppBetaVersion) { } else if (AppBetaVersion) {
result += " beta"; result += " beta";
} }
if (Platform::IsWindows64Bit()) {
result += " x64";
}
return result; return result;
} }

View File

@@ -318,12 +318,36 @@ bool DumpCallback(const google_breakpad::MinidumpDescriptor &md, void *context,
#endif // !DESKTOP_APP_DISABLE_CRASH_REPORTS #endif // !DESKTOP_APP_DISABLE_CRASH_REPORTS
} // namespace } // namespace
if (Platform::IsWindowsStoreBuild()) {
return Platform::IsWindows64Bit()
? "WinStore64Bit"
: "WinStore32Bit";
} else if (Platform::IsWindows32Bit()) {
return "Windows32Bit";
} else if (Platform::IsWindows64Bit()) {
return "Windows64Bit";
} else if (Platform::IsMacStoreBuild()) {
return "MacAppStore";
} else if (Platform::IsOSXBuild()) {
return "OSX";
} else if (Platform::IsMac()) {
return "MacOS";
} else if (Platform::IsLinux32Bit()) {
return "Linux32Bit";
} else if (Platform::IsLinux64Bit()) {
return "Linux64bit";
}
Unexpected("Platform in CrashReports::PlatformString.");
QString PlatformString() { QString PlatformString() {
if (Platform::IsWindowsStoreBuild()) { if (Platform::IsWindowsStoreBuild()) {
return qsl("WinStore"); return Platform::IsWindows64Bit()
} else if (Platform::IsWindows()) { ? qsl("WinStore64Bit")
return qsl("Windows"); : qsl("WinStore32Bit");
} else if (Platform::IsWindows32Bit()) {
return qsl("Windows32Bit");
} else if (Platform::IsWindows64Bit()) {
return qsl("Windows64Bit");
} else if (Platform::IsMacStoreBuild()) { } else if (Platform::IsMacStoreBuild()) {
return qsl("MacAppStore"); return qsl("MacAppStore");
} else if (Platform::IsOSXBuild()) { } else if (Platform::IsOSXBuild()) {