MCPcopy Create free account
hub / github.com/Atarity/Lightpack / init

Method init

Software/hooks/D3D9FrameGrabber.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24bool 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
36bool D3D9FrameGrabber::isGAPILoaded() {
37 return GetModuleHandleA("d3d9.dll") != NULL;

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected