From fef34a06597674b63a13ee257a668b0bfa9dbdbd Mon Sep 17 00:00:00 2001 From: Non <43197300+nonperforming@users.noreply.github.com> Date: Sun, 13 Nov 2022 15:41:45 +1300 Subject: [PATCH] Fix windows custom message --- Sources/Core/VersionInfo.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/Core/VersionInfo.cpp b/Sources/Core/VersionInfo.cpp index 00d58a843..0e54f7bc9 100644 --- a/Sources/Core/VersionInfo.cpp +++ b/Sources/Core/VersionInfo.cpp @@ -24,7 +24,7 @@ std::string VersionInfo::GetVersionInfo() { buffer = "GNU/Linux"; #elif defined(TARGET_OS_MAC) - buffer = "Mac OS"; + buffer = "MacOS"; #elif defined(OS_PLATFORM_WINDOWS) if (IsWindowsVistaOrGreater() && !IsWindowsVistaSP1OrGreater()) { @@ -40,16 +40,16 @@ std::string VersionInfo::GetVersionInfo() { } else if (IsWindows8OrGreater() && !IsWindows8Point1OrGreater()) { buffer = "Windows 8"; } else if (IsWindows8Point1OrGreater() && !IsWindows10OrGreater()) { - buffer = "Windows 8.1"; + buffer = "Windows 8.1"; // doesnt work winapi is shit } else if (IsWindows10OrGreater()) { - buffer = "Windows 10"; + buffer = "Windows 10"; // doesnt work winapi is shit } else { - buffer = "Windows 11"; + buffer = "Windows 11"; // doesnt work winapi is shit } if (IsWindowsServer()) buffer += " Server"; - return buffer; + #elif defined(__FreeBSD__) buffer = "FreeBSD"; #elif defined(__OpenBSD__)