Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Fix windows custom message
Browse files Browse the repository at this point in the history
  • Loading branch information
nonperforming committed Nov 13, 2022
1 parent 5b1d7b0 commit fef34a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Core/VersionInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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__)
Expand Down

0 comments on commit fef34a0

Please sign in to comment.