Fix build

This commit is contained in:
Nemirtingas 2019-09-01 20:53:16 +02:00
parent 1785ae6eaf
commit b9cd9ae6c2
26 changed files with 1544 additions and 109 deletions

View file

@ -1,12 +1,12 @@
#include "DX10_Hook.h"
#include "Windows_Hook.h"
#include "Renderer_Detector.h"
#include "../dll/dll.h"
#include "../Renderer_Detector.h"
#include "../../dll/dll.h"
#ifndef NO_OVERLAY
#include <imgui.h>
#include <impls/imgui_impl_dx10.h>
#include <impls/windows/imgui_impl_dx10.h>
DX10_Hook* DX10_Hook::_inst = nullptr;

View file

@ -1,7 +1,7 @@
#ifndef __INCLUDED_DX10_HOOK_H__
#define __INCLUDED_DX10_HOOK_H__
#include "Base_Hook.h"
#include "../Base_Hook.h"
#ifndef NO_OVERLAY
#include <d3d10.h>
@ -42,10 +42,10 @@ public:
bool start_hook();
static DX10_Hook* Inst();
virtual const char* get_lib_name() const;
void loadFunctions(IDXGISwapChain *pSwapChain);
};
#endif//NO_OVERLAY
#endif//__INCLUDED_DX10_HOOK_H__
#endif//__INCLUDED_DX10_HOOK_H__

View file

@ -1,12 +1,12 @@
#include "DX11_Hook.h"
#include "Windows_Hook.h"
#include "Renderer_Detector.h"
#include "../dll/dll.h"
#include "../Renderer_Detector.h"
#include "../../dll/dll.h"
#ifndef NO_OVERLAY
#include <imgui.h>
#include <impls/imgui_impl_dx11.h>
#include <impls/windows/imgui_impl_dx11.h>
DX11_Hook* DX11_Hook::_inst = nullptr;

View file

@ -1,7 +1,7 @@
#ifndef __INCLUDED_DX11_HOOK_H__
#define __INCLUDED_DX11_HOOK_H__
#include "Base_Hook.h"
#include "../Base_Hook.h"
#ifndef NO_OVERLAY
#include <d3d11.h>
@ -19,7 +19,7 @@ private:
bool hooked;
bool initialized;
ID3D11DeviceContext* pContext;
ID3D11RenderTargetView* mainRenderTargetView;
ID3D11RenderTargetView* mainRenderTargetView;
// Functions
DX11_Hook();
@ -42,10 +42,10 @@ public:
bool start_hook();
static DX11_Hook* Inst();
virtual const char* get_lib_name() const;
void loadFunctions(IDXGISwapChain *pSwapChain);
};
#endif//NO_OVERLAY
#endif//__INCLUDED_DX11_HOOK_H__
#endif//__INCLUDED_DX11_HOOK_H__

View file

@ -1,12 +1,12 @@
#include "DX12_Hook.h"
#include "Windows_Hook.h"
#include "Renderer_Detector.h"
#include "../dll/dll.h"
#include "../Renderer_Detector.h"
#include "../../dll/dll.h"
#ifndef NO_OVERLAY
#include <imgui.h>
#include <impls/imgui_impl_dx12.h>
#include <impls/windows/imgui_impl_dx12.h>
#include <dxgi1_4.h>

View file

@ -1,7 +1,7 @@
#ifndef __INCLUDED_DX12_HOOK_H__
#define __INCLUDED_DX12_HOOK_H__
#include "Base_Hook.h"
#include "../Base_Hook.h"
#ifndef NO_OVERLAY
#include <d3d12.h>
@ -48,9 +48,9 @@ public:
bool start_hook();
static DX12_Hook* Inst();
virtual const char* get_lib_name() const;
void loadFunctions(ID3D12CommandQueue* pCommandQueue, ID3D12GraphicsCommandList* pCommandList, IDXGISwapChain* pSwapChain);
};
#endif//NO_OVERLAY
#endif//__INCLUDED_DX12_HOOK_H__
#endif//__INCLUDED_DX12_HOOK_H__

View file

@ -1,14 +1,12 @@
#include "DX9_Hook.h"
#include "Windows_Hook.h"
#include "Renderer_Detector.h"
#include "../dll/dll.h"
#include "../Renderer_Detector.h"
#include "../../dll/dll.h"
#ifndef NO_OVERLAY
#include <imgui.h>
#include <impls/imgui_impl_dx9.h>
#include "steam_overlay.h"
#include <impls/windows/imgui_impl_dx9.h>
DX9_Hook* DX9_Hook::_inst = nullptr;

View file

@ -1,7 +1,7 @@
#ifndef __INCLUDED_DX9_HOOK_H__
#define __INCLUDED_DX9_HOOK_H__
#include "Base_Hook.h"
#include "../Base_Hook.h"
#ifndef NO_OVERLAY
#include <d3d9.h>
@ -43,10 +43,10 @@ public:
bool start_hook();
static DX9_Hook* Inst();
virtual const char* get_lib_name() const;
void loadFunctions(IDirect3DDevice9 *pDevice, bool ex);
};
#endif//NO_OVERLAY
#endif//__INCLUDED_DX9_HOOK_H__
#endif//__INCLUDED_DX9_HOOK_H__

View file

@ -1,7 +1,7 @@
#include "OpenGL_Hook.h"
#include "Windows_Hook.h"
#include "Renderer_Detector.h"
#include "../dll/dll.h"
#include "../Renderer_Detector.h"
#include "../../dll/dll.h"
#ifndef NO_OVERLAY
@ -10,7 +10,7 @@
#include <GL/glew.h>
#include "steam_overlay.h"
#include "../steam_overlay.h"
OpenGL_Hook* OpenGL_Hook::_inst = nullptr;

View file

@ -1,14 +1,14 @@
#ifndef __INCLUDED_OPENGL_HOOK_H__
#define __INCLUDED_OPENGL_HOOK_H__
#include "Base_Hook.h"
#include "../Base_Hook.h"
#ifndef NO_OVERLAY
class OpenGL_Hook : public Base_Hook
{
public:
static constexpr const char *DLL_NAME = "opengl32.dll";
using wglSwapBuffers_t = BOOL(WINAPI*)(HDC);
private:
@ -39,4 +39,4 @@ public:
};
#endif//NO_OVERLAY
#endif//__INCLUDED_OPENGL_HOOK_H__
#endif//__INCLUDED_OPENGL_HOOK_H__

View file

@ -1,11 +1,11 @@
#include "Windows_Hook.h"
#include "Renderer_Detector.h"
#include "../dll/dll.h"
#include "../Renderer_Detector.h"
#include "../../dll/dll.h"
#ifndef NO_OVERLAY
#include <imgui.h>
#include <impls/imgui_impl_win32.h>
#include <impls/windows/imgui_impl_win32.h>
extern LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);