| 22 | } |
| 23 | |
| 24 | bool D3D9FrameGrabber::init() { |
| 25 | if (!m_isInited) { |
| 26 | if (m_ipcContext) { |
| 27 | |
| 28 | m_d3d9PresentProxyFuncJmp = new ProxyFuncJmp(this->calcD3d9PresentPointer(), reinterpret_cast<void*>(D3D9Present), m_logger); |
| 29 | m_d3d9SCPresentProxyFuncJmp = new ProxyFuncJmp(this->calcD3d9SCPresentPointer(), reinterpret_cast<void*>(D3D9SCPresent), m_logger); |
| 30 | m_isInited = m_d3d9PresentProxyFuncJmp->init() && m_d3d9SCPresentProxyFuncJmp->init(); |
| 31 | } |
| 32 | } |
| 33 | return m_isInited; |
| 34 | } |
| 35 | |
| 36 | bool D3D9FrameGrabber::isGAPILoaded() { |
| 37 | return GetModuleHandleA("d3d9.dll") != NULL; |
nothing calls this directly
no test coverage detected