Commit graph

442 commits

Author SHA1 Message Date
Hyper
f157b21d67
Implemented SDL event listener class and HUD toggle key (#4)
* Implemented SDL event listener class

* Add HUD toggle.

* frontend_listener: clean-up

* window: invoke all listener callbacks at once

* window: use raw pointers for listeners

* Rename WindowListener to SDLEventListener, reduce virtual functions

---------

Co-authored-by: RadiantDerg <jayvier13@gmail.com>
2024-11-10 21:23:36 +03:00
Hyper
21fc80798e Ignore XML exception to allow invalid DLC XMLs to parse 2024-11-10 12:50:51 +00:00
Skyth
05e09ba7e2 Implement ImGui. 2024-11-09 21:47:50 +03:00
Hyper
dabda369ca patches: move XButtonHoming hook to player_patches 2024-11-09 14:54:44 +00:00
Skyth
0962560ec9 Add triangle list fallback path for triangle fans. 2024-11-08 22:03:26 +03:00
Skyth
329d51885d Negate the game's reverse Z implementation. 2024-11-08 20:18:54 +03:00
Hyper
ec5c51f54c
Migrate game.cpp to categorised source files (#3)
* Migrate game.cpp to categorised source files

Co-Authored-By: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
Co-Authored-By: Michael <15317421+ActualMandM@users.noreply.github.com>

* Move motion blur hook to video_patches.cpp

---------

Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
Co-authored-by: Michael <15317421+ActualMandM@users.noreply.github.com>
2024-11-08 16:18:41 +03:00
Skyth
4fa03e96b9 Add resolution patches for bloom glare & light shaft. 2024-11-08 13:34:17 +03:00
Sajid
cf300c8854 Make XAudio callback ABI compliant 2024-11-08 02:21:35 +06:00
Skyth
611a2c7c31 Add HFR patches for 2D camera slope sensitivity. 2024-11-07 15:10:36 +03:00
Skyth
0400c79628 Add D3DXFillTexture implementation for the 1x1 white texture. 2024-11-06 23:56:51 +03:00
Skyth
220da348f8 Update ShaderRecomp submodule. 2024-11-06 13:38:29 +03:00
Skyth
182b5bebc2 Hold a pointer to provided shader blob instead of cloning it in D3D12. 2024-11-06 13:33:15 +03:00
Skyth
d8512fd6b7 Add motion blur toggle. 2024-11-06 00:47:16 +03:00
Hyper
fabc1ffbc7 window: fix abnormal window states erroneously saving dimensions 2024-11-05 14:37:07 +00:00
Hyper
9e2edfe8cd Merge branch 'main' of https://github.com/hedge-dev/UnleashedRecomp 2024-11-05 12:47:39 +00:00
Hyper
02e0f1e0d2 Remove unused register from Werehog battle music hook 2024-11-05 12:47:28 +00:00
Skyth
88c7b8b8d5 Add player 2D camera HFR patches. 2024-11-05 15:17:31 +03:00
Skyth
8ff30ab383 Add player 3D camera HFR patches. 2024-11-05 13:37:45 +03:00
Hyper
90b60ebc8d Implemented Werehog battle music toggle 2024-11-05 03:57:34 +00:00
Hyper
43ec0797b0 window: hide mouse cursor on fullscreen boot 2024-11-04 12:47:44 +00:00
Hyper
4bf576ab1c Implemented control tutorial toggle 2024-11-04 12:46:58 +00:00
Skyth
fa5fc9aae7 Implement critical sections using WaitOnAddress. 2024-11-04 13:16:58 +03:00
Skyth
cd99cf2c04 Refactor resource destruction to fix data races. 2024-11-04 12:14:52 +03:00
Hyper
f96b2ad16c window: use SDL flags to determine centred window config 2024-11-04 03:28:47 +00:00
Skyth
3c4a8f5ee5 Add HFR patches for Werehog key mash objects. 2024-11-03 18:39:54 +03:00
Skyth
4721672282 Implement fix for flame thrower zero initialization bug. 2024-11-03 17:20:11 +03:00
Skyth
11b5551cd0 Preload DLCs before title screen. 2024-11-03 15:14:18 +03:00
Skyth
b6df64516b Update README.md. 2024-11-01 16:48:35 +03:00
Hyper
0564cbc483 window: exit fullscreen on F2 reset 2024-10-30 11:44:37 +00:00
Hyper
1c7b66237d window: refactored code 2024-10-30 11:41:48 +00:00
Darío
7d04ed057c
Add Vsync configuration support to the RHI. (#1) 2024-10-30 11:32:30 +03:00
Darío
ca9009b88d
Fix the new ShaderRecomp include. (#2) 2024-10-30 11:07:39 +03:00
Hyper
b728100b5a xam: use std::string for XamContentCreateEx directory
I hate strings
2024-10-29 20:55:23 +00:00
Skyth
c1495170fe Make shader recompilation depend on ShaderRecomp source files. 2024-10-29 20:27:12 +03:00
Skyth
b3b8d1657a Move main thread buffer copy to graphics command list. 2024-10-27 20:43:01 +03:00
Skyth
f807feaeb1 Implement proper null texture descriptors per dimension type. 2024-10-27 20:16:08 +03:00
Skyth
24d257d421 Fix a bunch of warnings. 2024-10-27 18:48:09 +03:00
Skyth
882f371de4 Move buffer copies to render thread if they happen in the main thread. 2024-10-27 17:17:12 +03:00
Skyth
b867961000 Enqueue render commands in bulk. 2024-10-27 15:24:30 +03:00
Skyth
78788620b7 Fix scissor rect not getting updated along with the viewport. 2024-10-27 00:28:24 +03:00
Skyth
5676591618 Refactor render commands to execute asynchronously. 2024-10-27 00:02:47 +03:00
Skyth
31f34a8669 Add TGA loading support. 2024-10-26 11:55:37 +03:00
Skyth
0b3e0009d6 Fix MSAA depth resolve. 2024-10-26 00:51:03 +03:00
Skyth
c20130036e Refactor framebuffer usage to fix 1024x1024 shadowmaps. 2024-10-25 23:31:15 +03:00
Skyth
edc1eeead6 Update ShaderRecomp submodule. 2024-10-25 17:31:43 +03:00
Skyth
c2d0128226 Remove half pixel globally instead of negating them with patches. 2024-10-24 17:43:05 +03:00
Skyth
9b70e1034a Implement alpha to coverage. 2024-10-24 14:57:23 +03:00
Skyth
98554eaffa Fix backbuffer format. 2024-10-23 17:50:12 +03:00
Skyth
1181b5d905 Force Vulkan when Wine is detected. 2024-10-22 23:40:20 +03:00