Commit Graph

12 Commits (495bc957cdb7932b804ee50f4da0c38eeff0e690)

Author SHA1 Message Date
Nemirtingas 36e8966223 Cleanup again 5 years ago
Nemirtingas 44d583ee7d Added class Renderer_Detector.
Hook_Manager now only manages hooks.
Renderer_Detector is used to detect the game's renderer. There will be 2 version of it. 1 for windows and 1 for Linux.
5 years ago
Nemirtingas 9b178146c4 Cleaned a bit hooks and added sanity checks. 5 years ago
Nemirtingas dd530e80b1 Now passing to hooks device object.
Added Base_Hook::get_lib_name to track what renderer is hooked for overlay.
Objects used to detect renderer type are now also used to hook the rendering functions. So we don't have to build another device.
Updated VTables for DX12.
5 years ago
Nemirtingas 5d4b4371f3 Fixed everything that I've forgot 5 years ago
Nemirtingas d06fbba104 Added error handling when hook fails 5 years ago
Nemirtingas 40615d07a7 Reworked how renderers are hooked.
Some games doesn't initialise Steam before initalizing their Renderer (even if the doc says to) . So instead of waiting for the game to initialize it, hook to the rendering functions and deduce which implementation should be used.
5 years ago
Nemirtingas 4d3c355fcc Renammed hook_<renderer> to start_hook 5 years ago
Nemirtingas d87760b78b Created a define to not compile overlay. 5 years ago
Nemirtingas 56b4e6a7c7 Added preprocessor exclusion for linux 5 years ago
Nemirtingas 890f19c20a Fixing cross compiling with clang-cl 5 years ago
Nemirtingas 2ba8cae64e Added DirectX hooks
Warning: DX9 doesn't support resizing (TODO), DX12 has not beed tested and is not finished.
No OpenGL support for now.
5 years ago