mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-23 12:28:07 +01:00
Initialize overlay after full initialization of UI.
This commit is contained in:
parent
05f3fa09b3
commit
7b53134512
4 changed files with 7 additions and 4 deletions
|
@ -96,9 +96,10 @@ void DX10_Hook::prepareForOverlay(IDXGISwapChain* pSwapChain)
|
||||||
pDevice->CreateRenderTargetView(pBackBuffer, NULL, &mainRenderTargetView);
|
pDevice->CreateRenderTargetView(pBackBuffer, NULL, &mainRenderTargetView);
|
||||||
pBackBuffer->Release();
|
pBackBuffer->Release();
|
||||||
|
|
||||||
Hook_Manager::Inst().ChangeGameWindow(desc.OutputWindow);
|
|
||||||
ImGui_ImplWin32_Init(desc.OutputWindow);
|
ImGui_ImplWin32_Init(desc.OutputWindow);
|
||||||
ImGui_ImplDX10_Init(pDevice);
|
ImGui_ImplDX10_Init(pDevice);
|
||||||
|
Hook_Manager::Inst().ChangeGameWindow(desc.OutputWindow);
|
||||||
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,9 +109,10 @@ void DX11_Hook::prepareForOverlay(IDXGISwapChain* pSwapChain)
|
||||||
pDevice->CreateRenderTargetView(pBackBuffer, NULL, &mainRenderTargetView);
|
pDevice->CreateRenderTargetView(pBackBuffer, NULL, &mainRenderTargetView);
|
||||||
pBackBuffer->Release();
|
pBackBuffer->Release();
|
||||||
|
|
||||||
Hook_Manager::Inst().ChangeGameWindow(desc.OutputWindow);
|
|
||||||
ImGui_ImplWin32_Init(desc.OutputWindow);
|
ImGui_ImplWin32_Init(desc.OutputWindow);
|
||||||
ImGui_ImplDX11_Init(pDevice, pContext);
|
ImGui_ImplDX11_Init(pDevice, pContext);
|
||||||
|
Hook_Manager::Inst().ChangeGameWindow(desc.OutputWindow);
|
||||||
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,9 +96,10 @@ void DX9_Hook::prepareForOverlay(IDirect3DDevice9 *pDevice)
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
io.IniFilename = NULL;
|
io.IniFilename = NULL;
|
||||||
|
|
||||||
Hook_Manager::Inst().ChangeGameWindow(param.hFocusWindow);
|
|
||||||
ImGui_ImplWin32_Init(param.hFocusWindow);
|
ImGui_ImplWin32_Init(param.hFocusWindow);
|
||||||
ImGui_ImplDX9_Init(pDevice);
|
ImGui_ImplDX9_Init(pDevice);
|
||||||
|
Hook_Manager::Inst().ChangeGameWindow(param.hFocusWindow);
|
||||||
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,10 +73,10 @@ void OpenGL_Hook::prepareForOverlay(HDC hDC)
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
io.IniFilename = NULL;
|
io.IniFilename = NULL;
|
||||||
|
|
||||||
Hook_Manager::Inst().ChangeGameWindow(hWnd);
|
|
||||||
|
|
||||||
ImGui_ImplWin32_Init(hWnd);
|
ImGui_ImplWin32_Init(hWnd);
|
||||||
ImGui_ImplOpenGL3_Init();
|
ImGui_ImplOpenGL3_Init();
|
||||||
|
Hook_Manager::Inst().ChangeGameWindow(hWnd);
|
||||||
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue