common: Drop windows 8.1 and server 2012 r2 support.

We already require windows 10 (build 1809) with the recent recompiler changes.
This commit is contained in:
lightningterror 2022-11-20 00:07:09 +01:00
parent e212c611be
commit dda0b6c296
2 changed files with 6 additions and 13 deletions

View File

@ -52,9 +52,7 @@ std::unique_ptr<HTTPDownloader> HTTPDownloader::Create(const char* user_agent)
bool HTTPDownloaderWinHttp::Initialize(const char* user_agent)
{
// WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY is not supported before Win8.1.
const DWORD dwAccessType =
IsWindows8Point1OrGreater() ? WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY : WINHTTP_ACCESS_TYPE_DEFAULT_PROXY;
const DWORD dwAccessType = WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY;
m_hSession = WinHttpOpen(StringUtil::UTF8StringToWideString(user_agent).c_str(), dwAccessType, nullptr, nullptr,
WINHTTP_FLAG_ASYNC);

View File

@ -64,19 +64,14 @@ std::string GetOSVersionString()
SYSTEM_INFO si;
GetNativeSystemInfo(&si);
if (!IsWindows8Point1OrGreater())
{
retval = "Unsupported Operating System!";
}
else
if (IsWindows10OrGreater())
{
retval = "Microsoft ";
if (IsWindows10OrGreater())
retval += IsWindowsServer() ? "Windows Server 2016" : "Windows 10";
else // IsWindows8Point1OrGreater()
retval += IsWindowsServer() ? "Windows Server 2012 R2" : "Windows 8.1";
retval += IsWindowsServer() ? "Windows Server 2016" : "Windows 10";
}
else
retval = "Unsupported Operating System!";
return retval;
}