mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 09:57:14 +01:00
Update Environment.cpp
This commit is contained in:
parent
5cf1f2cd41
commit
39a6780d5c
@ -200,33 +200,38 @@ String SysEnv::OSDisplayName()
|
|||||||
return "Unknown Windows";
|
return "Unknown Windows";
|
||||||
}
|
}
|
||||||
// Identify the platform from the obtained information
|
// Identify the platform from the obtained information
|
||||||
switch(vi.dwMajorVersion)
|
switch(vi.dwMajorVersion) {
|
||||||
{
|
case 10:
|
||||||
case 6:
|
switch (vi.dwMinorVersion) {
|
||||||
switch (vi.dwMinorVersion)
|
case 0: return "Windows 10/Windows Server 2016";
|
||||||
{
|
default: return "Windows 10.x [Unknown]";
|
||||||
case 0: return "Windows Vista/Server 2008";
|
}
|
||||||
case 1: return "Windows 7/Server 2008 R2";
|
case 6:
|
||||||
case 2: return "Windows 8/Server 2012";
|
switch (vi.dwMinorVersion) {
|
||||||
default: return "Windows 6.x [Unknown]";
|
case 0: return "Windows Vista/Server 2008";
|
||||||
}
|
case 1: return "Windows 7/Server 2008 R2";
|
||||||
case 5:
|
case 2: return "Windows 8/Server 2012";
|
||||||
switch (vi.dwMinorVersion)
|
case 3: return "Windows 8.1/Server 2012 R2";
|
||||||
{
|
default: return "Windows 6.x [Unknown]";
|
||||||
case 0: return "Windows 2000";
|
}
|
||||||
case 1: return "Windows XP";
|
// Even this is questionable
|
||||||
case 2: return "Windows Server 2003/Windows Server 2003 R2";
|
case 5:
|
||||||
default: return "Windows 5.x [Unknown]";
|
switch (vi.dwMinorVersion) {
|
||||||
}
|
case 0: return "Windows 2000";
|
||||||
case 4:
|
case 1: return "Windows XP";
|
||||||
switch (vi.dwMinorVersion)
|
case 2: return "Windows Server 2003/Windows Server 2003 R2";
|
||||||
{
|
default: return "Windows 5.x [Unknown]";
|
||||||
case 0: return "Windows 95/Windows NT 4.0";
|
}
|
||||||
case 10: return "Windows 98";
|
// This is here only for the lolz
|
||||||
case 90: return "Windows ME";
|
case 4:
|
||||||
default: return "Windows 4.x [Unknown]";
|
switch (vi.dwMinorVersion) {
|
||||||
}
|
case 0: return "Windows 95/Windows NT 4.0";
|
||||||
default: return "Windows [Unknown]";
|
case 10: return "Windows 98";
|
||||||
|
case 90: return "Windows ME";
|
||||||
|
default: return "Windows 4.x [Unknown]";
|
||||||
|
}
|
||||||
|
// Something smells
|
||||||
|
default: return "Windows [Unknown]";
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// Use the same same output from OSName
|
// Use the same same output from OSName
|
||||||
|
Loading…
x
Reference in New Issue
Block a user