Commit Graph

211 Commits (9b178146c45a1b459ab6225194125f0187c219e4)
 

Author SHA1 Message Date
Nemirtingas 9b178146c4 Cleaned a bit hooks and added sanity checks. 5 years ago
Nemirtingas 2365b50c38 Merge branch 'master' into overlay_h 5 years ago
Mr_Goldberg bca4bd6dc1
Added a way to configure stats and moved parser logic to other file. 5 years ago
Mr_Goldberg 1d920c538a
Christsnatcher .bat improvements. 5 years ago
Nemirtingas d0251b0b01 Some kind of DX12 hook 5 years ago
Nemirtingas 8e07dd0c6b Changed window detection. 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 cd8c5fc2ea Fixed memory leak 5 years ago
Nemirtingas 42a22dd4bb Don't free objects with shutdown
Some games don't like to free the DX objects after the game has shut down.
5 years ago
Nemirtingas 4db2b6528c Changed window detection code.
GetModuleHandle(NULL) get the exe handle. Sometimes the window couldn't be found because the window wasn't created in the .exe but in a dll. Thats why I list all dll HANDLES and try to find the main window handle.
5 years ago
Nemirtingas 0fa2d82c67 Fixed overlay on x64
They are not longer available with GetWindowLong. There is a new function GetWindowLongPtr.
GWLP* must be used.
5 years ago
Nemirtingas 5a0653d080 Refactor dx device creation
Find the game's window instead of using the foreground window.
5 years ago
Nemirtingas dc7480c633 Better compatibility for dx10 and 11 5 years ago
Nemirtingas 8757f4a548 Fixed ressource leaks. 5 years ago
Nemirtingas c99628a88a Added hook retry.
Handed hook detection to a thread that can then retry.
With that, don't need to wait for loadLibrary.
Will remove all those commented functions in another version.
5 years ago
Nemirtingas 5893b69d1f Partially working DX12 overlay
DX12 hook seems ok, there are some bugs remaining.
ImGui setup for DX12 doesn't work.
5 years ago
Nemirtingas 3c83e08d34 Fix the last frame before not showing overlay
The last frame was sending inputs to the game window, making the game receive a <TAB>.
5 years ago
Nemirtingas ca0ef4380a Moved hooks calls and added hook retry
With that change, I no longer re-hook rendering functions as Hook_Manager::FoundRenderer removes all hooks and then we hook the true functions in the renderer specialization.
Added a retry count.
5 years ago
Nemirtingas 5b0306dccc Moved window hooks to its own class
Every class has a job. Overlay is to show an overlay not to hook windows functions.
Hook_Manager's job is to manage hooks and should not contain a reference to the overlay. (It should not contains any reference to directX or OpenGL either but I'll see that later... Maybe)
This makes the overlay code much cleaner and "could" be used in Linux as well.
5 years ago
Nemirtingas f096a2d8a2 Use LoadLibrary instead of LoadModule
LoadLibrary increase the reference count to the library. So we make sure this library is still loaded when we shut down the hook.
5 years ago
Nemirtingas fdeb5912d3 Try to Disable all inputs when overlay is on 5 years ago
Nemirtingas 7daf605511 Merge branch 'master' into overlay_h 5 years ago
Mr_Goldberg ced9b77afc
Tweaked auth delays. 5 years ago
Mr_Goldberg 06b4332187
Add some commented out code to disable https in winhttp. 5 years ago
Mr_Goldberg 0e17aeef76
Basic steamclient.dll emulation.
Build with STEAMCLIENT_DLL defined to build in steamclient.dll mode.
5 years ago
Mr_Goldberg e044205e71
Make encrypted ticket size more realistic. 5 years ago
Nemirtingas 757dc479e4 Removed inline 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 71d3e301c2 Added Winmm (Wav Play) 5 years ago
Nemirtingas 1b37e837a1 Notification sound when something happen 5 years ago
Nemirtingas 7b53134512 Initialize overlay after full initialization of UI. 5 years ago
Nemirtingas 05f3fa09b3 Better compatibility for DX10 & DX11
Create a NULL Device (We only need it to retrieve its vtable)
5 years ago
Nemirtingas d7f6d254eb Added static glew to build scripts 5 years ago
Nemirtingas cb0e1dff25 Added opengl32 lib and declared glew as static 5 years ago
Nemirtingas 78ffbc6571 Added ImGui wildcard escape 5 years ago
Nemirtingas 2792793bf3 Only call overlay related functions if it is ready
Continue to receive friends notifications, so if the overlay becomes ready we already have the list of friends.
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 2fe5e90294 Reworked booleans 5 years ago
Nemirtingas 8abd24ca54 Re-enabled auto join if overlay is not ready 5 years ago
Nemirtingas 3516b98042 Replaced wildcard with sed. 5 years ago
Nemirtingas bbfdcd848f Moved download of glew 5 years ago
Nemirtingas 631bcd96ce Added glew and pointing to the right directory for imgui 5 years ago
Nemirtingas 71afa0daf6 Added ImGui include dir 5 years ago
Nemirtingas 86d74c7a05 Added EMU_EXPERIMENTAL_BUILD define 5 years ago
Nemirtingas 664d9a29b1 Updated build paths 5 years ago
Nemirtingas 9729ae9e4d Added overlay files to cmake 5 years ago
Nemirtingas 411c2c2dda Revert Test Fix 5 years ago
Nemirtingas c67bc528d1 Removed overlay from lobby_connect in linux build 5 years ago