mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-14 10:50:13 +01:00
Update Renderer_Detector.cpp
DX12 hook
This commit is contained in:
parent
88d403aea7
commit
4c2484cdef
1 changed files with 13 additions and 7 deletions
|
@ -93,22 +93,28 @@ HRESULT STDMETHODCALLTYPE Renderer_Detector::MyIDXGISwapChain_Present(IDXGISwapC
|
||||||
}
|
}
|
||||||
if (pDevice)
|
if (pDevice)
|
||||||
{
|
{
|
||||||
DX10_Hook::Inst()->start_hook();
|
DX12_Hook::Inst()->start_hook();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (inst._dx11_hooked)
|
||||||
{
|
{
|
||||||
_this->GetDevice(IID_PPV_ARGS(reinterpret_cast<ID3D11Device**>(&pDevice)));
|
_this->GetDevice(IID_PPV_ARGS(reinterpret_cast<ID3D11Device**>(&pDevice)));
|
||||||
|
}
|
||||||
if (pDevice)
|
if (pDevice)
|
||||||
{
|
{
|
||||||
DX11_Hook::Inst()->start_hook();
|
DX11_Hook::Inst()->start_hook();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//_this->GetDevice(IID_PPV_ARGS(reinterpret_cast<ID3D12Device**>(&pDevice)));
|
if (inst._dx10_hooked)
|
||||||
//if (pDevice)
|
{
|
||||||
//{
|
_this->GetDevice(IID_PPV_ARGS(reinterpret_cast<ID3D10Device**>(&pDevice)));
|
||||||
// DX12_Hook::Inst()->start_hook();
|
}
|
||||||
//}
|
if (pDevice)
|
||||||
|
{
|
||||||
|
DX10_Hook::Inst()->start_hook();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (pDevice) pDevice->Release();
|
if (pDevice) pDevice->Release();
|
||||||
|
|
Loading…
Reference in a new issue