Fixed Windows 10 detection. It appears that after a series of brain-dead version numbers in Windows 7 (v6.1), Windows 8 (v6.2) and Windows 8.1 (v6.3), we are back to sanity now.
This commit is contained in:
parent
efc4219c5b
commit
e33d869f59
@ -1,6 +1,6 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// MuldeR's Utilities for Qt
|
// MuldeR's Utilities for Qt
|
||||||
// Copyright (C) 2004-2014 LoRd_MuldeR <MuldeR2@GMX.de>
|
// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU Lesser General Public
|
||||||
@ -200,7 +200,7 @@ namespace MUtils
|
|||||||
const os_version_t WINDOWS_WIN70 = { OS_WINDOWS, 6, 1 }; // 7
|
const os_version_t WINDOWS_WIN70 = { OS_WINDOWS, 6, 1 }; // 7
|
||||||
const os_version_t WINDOWS_WIN80 = { OS_WINDOWS, 6, 2 }; // 8
|
const os_version_t WINDOWS_WIN80 = { OS_WINDOWS, 6, 2 }; // 8
|
||||||
const os_version_t WINDOWS_WIN81 = { OS_WINDOWS, 6, 3 }; // 8.1
|
const os_version_t WINDOWS_WIN81 = { OS_WINDOWS, 6, 3 }; // 8.1
|
||||||
const os_version_t WINDOWS_WN100 = { OS_WINDOWS, 6, 4 }; // 10
|
const os_version_t WINDOWS_WN100 = { OS_WINDOWS, 10, 0 }; // 10
|
||||||
|
|
||||||
//Unknown OS
|
//Unknown OS
|
||||||
const os_version_t UNKNOWN_OPSYS = { OS_UNKNOWN, 0, 0 }; // N/A
|
const os_version_t UNKNOWN_OPSYS = { OS_UNKNOWN, 0, 0 }; // N/A
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// MuldeR's Utilities for Qt
|
// MuldeR's Utilities for Qt
|
||||||
// Copyright (C) 2004-2014 LoRd_MuldeR <MuldeR2@GMX.de>
|
// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// This library is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU Lesser General Public
|
// modify it under the terms of the GNU Lesser General Public
|
||||||
@ -252,7 +252,7 @@ QApplication *MUtils::Startup::create_qt(int &argc, char **argv, const QString &
|
|||||||
{
|
{
|
||||||
const QString message = QString().sprintf("Running on an unknown WindowsNT-based system (v%u.%u).", osVersion.versionMajor, osVersion.versionMinor);
|
const QString message = QString().sprintf("Running on an unknown WindowsNT-based system (v%u.%u).", osVersion.versionMajor, osVersion.versionMinor);
|
||||||
qWarning("%s\n", MUTILS_UTF8(message));
|
qWarning("%s\n", MUTILS_UTF8(message));
|
||||||
MUtils::OS::system_message_wrn(MUTILS_WCHR(message), L"LameXP");
|
MUtils::OS::system_message_wrn(L"LameXP", MUTILS_WCHR(message));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check for compat mode
|
//Check for compat mode
|
||||||
|
Loading…
Reference in New Issue
Block a user