nix-overlay/patches/mumble-os-version.patch

52 lines
1.2 KiB
Diff

From 5460fffdd4c1161b5cd099944d88e25ffb81a2e0 Mon Sep 17 00:00:00 2001
From: MadMaurice <madmaurice@zom.bi>
Date: Wed, 21 Apr 2021 22:02:27 +0200
Subject: [PATCH] Patch os info string to say AmigaOS
---
src/OSInfo.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/OSInfo.cpp b/src/OSInfo.cpp
index 60a705f95..94435a384 100644
--- a/src/OSInfo.cpp
+++ b/src/OSInfo.cpp
@@ -173,6 +173,8 @@ QString OSInfo::getMacHash(const QList<QHostAddress> &qlBind) {
}
QString OSInfo::getOS() {
+ return QLatin1String("Philips HD2581/00");
+#if 0
#if defined(Q_OS_WIN)
# if defined(Q_OS_WIN64)
return QLatin1String("WinX64");
@@ -184,6 +186,7 @@ QString OSInfo::getOS() {
#else
return QLatin1String("X11");
#endif
+#endif
}
QString OSInfo::getOSVersion() {
@@ -193,7 +196,9 @@ QString OSInfo::getOSVersion() {
return qsCached.isEmpty() ? QString() : qsCached;
QString os;
+ os.sprintf("Amiga OS 1.3");
+#if 0
#if defined(Q_OS_WIN)
OSVERSIONINFOEXW ovi;
memset(&ovi, 0, sizeof(ovi));
@@ -258,6 +263,7 @@ QString OSInfo::getOSVersion() {
os.sprintf("%s %s", un.sysname, un.release);
}
}
+#endif
#endif
if (! os.isNull())
--
2.29.3