mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-09 22:28:38 +01:00
Fix hooks not working
Even if dxgi is hooked, it will not be rehooked, HookDXGIPresent has a check, but different dx versions need a call to loadFunctions.
This commit is contained in:
parent
f22828d858
commit
1dc5bcc5c1
1 changed files with 3 additions and 3 deletions
|
@ -271,7 +271,7 @@ void Renderer_Detector::hook_dx9()
|
|||
|
||||
void Renderer_Detector::hook_dx10()
|
||||
{
|
||||
if (!_dxgi_hooked && !_renderer_found)
|
||||
if (!_dx10_hooked && !_renderer_found)
|
||||
{
|
||||
create_hwnd();
|
||||
if (dummy_hWnd == nullptr)
|
||||
|
@ -324,7 +324,7 @@ void Renderer_Detector::hook_dx10()
|
|||
|
||||
void Renderer_Detector::hook_dx11()
|
||||
{
|
||||
if (!_dxgi_hooked && !_renderer_found)
|
||||
if (!_dx11_hooked && !_renderer_found)
|
||||
{
|
||||
create_hwnd();
|
||||
if (dummy_hWnd == nullptr)
|
||||
|
@ -378,7 +378,7 @@ void Renderer_Detector::hook_dx11()
|
|||
|
||||
void Renderer_Detector::hook_dx12()
|
||||
{
|
||||
if (!_dxgi_hooked && !_renderer_found)
|
||||
if (!_dx12_hooked && !_renderer_found)
|
||||
{
|
||||
create_hwnd();
|
||||
if (dummy_hWnd == nullptr)
|
||||
|
|
Loading…
Reference in a new issue