Skip to content

Commit

Permalink
lib: disable pick() and getpickrecords() hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramen2X authored Jan 30, 2024
1 parent b8ee9b0 commit 1f1e7e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ HRESULT WINAPI InterceptD3DRMCreateViewport(LPDIRECT3DRM d3drm, LPDIRECT3DRMDEVI

d3drm_device = device;

/* Disabled temporarily until this implementation of Pick becomes more reliable
// Check if we're running on Wine, in which case we'll override Pick() and GetPickRecords()
if (HMODULE ntdll = GetModuleHandle("NTDLL.DLL")) {
if (GetProcAddress(ntdll, "wine_get_version")) {
Expand All @@ -541,7 +543,7 @@ HRESULT WINAPI InterceptD3DRMCreateViewport(LPDIRECT3DRM d3drm, LPDIRECT3DRMDEVI
}
}
}
}
}*/

if (res == DD_OK) {
if (!d3drmDeviceUpdateOriginal) {
Expand Down

0 comments on commit 1f1e7e8

Please sign in to comment.