Skip to content

Commit

Permalink
comment out non-working functions
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed May 4, 2024
1 parent 64c4b73 commit 2cbd9bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions cnc-ddraw.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
<ClInclude Include="inc\config.h" />
<ClInclude Include="inc\ddsurface.h" />
<ClInclude Include="inc\version.h" />
<ClInclude Include="inc\versionhelpers.h" />
<ClInclude Include="inc\wglext.h" />
<ClInclude Include="inc\winapi_hooks.h" />
<ClInclude Include="inc\wndproc.h" />
Expand Down
5 changes: 4 additions & 1 deletion cnc-ddraw.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,12 @@
<ClInclude Include="inc\ini.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="inc\versionhelpers.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="ddraw.rc">
<ResourceCompile Include="res.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions inc/versionhelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ VERSIONHELPERAPI IsWindows7SP1OrGreater(void) {
VERSIONHELPERAPI IsWindows8OrGreater(void) {
return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN8), LOBYTE(_WIN32_WINNT_WIN8), 0);
}

/* Those can't be used without manifest so we comment them out to ensure they're not being used by accident
VERSIONHELPERAPI IsWindows8Point1OrGreater(void) {
return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINBLUE), LOBYTE(_WIN32_WINNT_WINBLUE), 0);
}
Expand All @@ -88,7 +88,7 @@ VERSIONHELPERAPI IsWindowsThresholdOrGreater(void) {
VERSIONHELPERAPI IsWindows10OrGreater(void) {
return IsWindowsThresholdOrGreater();
}

*/
VERSIONHELPERAPI IsWindowsServer(void) {
OSVERSIONINFOEXW vi = {sizeof(vi),0,0,0,0,{0},0,0,0,VER_NT_WORKSTATION};
return !VerifyVersionInfoW(&vi, VER_PRODUCT_TYPE, VerSetConditionMask(0, VER_PRODUCT_TYPE, VER_EQUAL));
Expand Down

0 comments on commit 2cbd9bb

Please sign in to comment.