mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
Identify Windows 10 in the startup window/log. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@4891 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c591711fe8
commit
16b9b19e53
5 changed files with 33 additions and 31 deletions
|
@ -54,41 +54,35 @@ static void win_printversion(void)
|
|||
|
||||
switch (osv.dwPlatformId)
|
||||
{
|
||||
case VER_PLATFORM_WIN32_NT:
|
||||
if (osv.dwMajorVersion == 5)
|
||||
{
|
||||
switch (osv.dwMinorVersion)
|
||||
case VER_PLATFORM_WIN32_NT:
|
||||
switch (osv.dwMajorVersion)
|
||||
{
|
||||
case 1:
|
||||
ver = "XP";
|
||||
break;
|
||||
case 2:
|
||||
ver = osv.wProductType == VER_NT_WORKSTATION ? "XP x64" : "Server 2003";
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 5:
|
||||
switch (osv.dwMinorVersion)
|
||||
{
|
||||
case 1: ver = "XP"; break;
|
||||
case 2: ver = osv.wProductType == VER_NT_WORKSTATION ? "XP x64" : "Server 2003"; break;
|
||||
}
|
||||
break;
|
||||
|
||||
if (osv.dwMajorVersion == 6)
|
||||
{
|
||||
switch (osv.dwMinorVersion)
|
||||
{
|
||||
case 0:
|
||||
ver = osv.wProductType == VER_NT_WORKSTATION ? "Vista" : "Server 2008";
|
||||
break;
|
||||
case 1:
|
||||
ver = osv.wProductType == VER_NT_WORKSTATION ? "7" : "Server 2008 R2";
|
||||
break;
|
||||
case 2:
|
||||
ver = osv.wProductType == VER_NT_WORKSTATION ? "8" : "Server 2012";
|
||||
break;
|
||||
case 3:
|
||||
ver = osv.wProductType == VER_NT_WORKSTATION ? "8.1" : "Server 2012 R2";
|
||||
break;
|
||||
case 6:
|
||||
switch (osv.dwMinorVersion)
|
||||
{
|
||||
case 0: ver = osv.wProductType == VER_NT_WORKSTATION ? "Vista" : "Server 2008"; break;
|
||||
case 1: ver = osv.wProductType == VER_NT_WORKSTATION ? "7" : "Server 2008 R2"; break;
|
||||
case 2: ver = osv.wProductType == VER_NT_WORKSTATION ? "8" : "Server 2012"; break;
|
||||
case 3: ver = osv.wProductType == VER_NT_WORKSTATION ? "8.1" : "Server 2012 R2"; break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 10:
|
||||
switch (osv.dwMinorVersion)
|
||||
{
|
||||
case 0: ver = osv.wProductType == VER_NT_WORKSTATION ? "10" : "Server 10"; break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
initprintf("Windows %s", ver);
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
|
||||
<!-- Windows 8.1 -->
|
||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
|
||||
<!-- Windows 10 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
|
||||
</application>
|
||||
</compatibility>
|
||||
</assembly>
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
|
||||
<!-- Windows 8.1 -->
|
||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
|
||||
<!-- Windows 10 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
|
||||
</application>
|
||||
</compatibility>
|
||||
</assembly>
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
|
||||
<!-- Windows 8.1 -->
|
||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
|
||||
<!-- Windows 10 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
|
||||
</application>
|
||||
</compatibility>
|
||||
</assembly>
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
|
||||
<!-- Windows 8.1 -->
|
||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
|
||||
<!-- Windows 10 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
|
||||
</application>
|
||||
</compatibility>
|
||||
</assembly>
|
||||
|
|
Loading…
Reference in a new issue