Commit graph

746 commits

Author SHA1 Message Date
Echo J
96e971e364 DDraw: Cast the memcpy() source argument
This works around the MinGW GCC type strictness
2024-11-07 14:14:51 +02:00
Echo J
f523ea372a DDraw: Change the forwarded name for DirectDrawCreateEx
MinGW GCC exports this function a bit differently (which doesn't
work here)
2024-11-07 14:14:51 +02:00
Echo J
b1a86e8a89 SilentPatchIII/VC/SA: Mark some function pointers as inline
MinGW GCC's linker can't find them otherwise
2024-11-07 14:14:33 +02:00
Echo J
9d988b3396 SilentPatchIII/VC: Remove extern from ppUserFilesDir variable definitions
This fixes compile warnings with MinGW GCC
2024-11-07 13:40:01 +02:00
Echo J
3eab9e4461 SilentPatchIII/VC/SA: Add GCC-compatible safebuffers equivalent
And switch to a common define for this attribute (this fixes
compile warnings on MinGW GCC)
2024-11-07 13:39:54 +02:00
Echo J
743fedfed2 Use reinterpret_cast for function pointer casts
MSVC (wrongly) allows those casts to succeed with static_cast:
https://stackoverflow.com/questions/74002657/why-cant-i-static-cast-a-void-to-a-pointer-to-function
(so adjust those casts for better compiler compatibility including MinGW GCC)
2024-11-07 13:38:07 +02:00
Echo J
a14472a16d Set Windows defines earlier
This avoids compile warnings on MinGW GCC (because standard C++
headers eventually import the Windows stuff)
2024-11-07 13:38:07 +02:00
Echo J
661336ecc9 Use lowercase names for Windows headers
This fixes missing header issues on a case-sensitive filesystem
with MinGW GCC
2024-11-07 13:37:56 +02:00
Echo J
539d923a6c Update Utils submodule
This pulls in the required cross-compile changes
2024-11-07 10:28:52 +02:00
Echo J
96e731cff9 Remove unused dllmain.cpp file
It seems to be used in the early days of SilentPatch (but it's
no longer included since the III/VC/SA code split and serves no purpose)
2024-11-07 10:26:39 +02:00
Tomasak
202101e4f7
More backface culling models (#30)
* two more bfc objects

it never ends

* Update SilentPatchVC.ini

* Update SilentPatchVC.ini
2024-11-02 17:26:22 +01:00
Silent
52deecd5ac
VC: Fix an incorrect vertex setup for the outline of a destination blip
Fixes #66
2024-11-02 17:22:03 +01:00
Silent
7d055f9264
III/VC: Two more minor scaling fixes
III: The position of the dialog question text in the main menu now
scales to resolution correctly.
VC: The vertical offset of the weapon name text in Ammu-Nation
now scales to resolution correctly.
2024-11-01 19:44:40 +01:00
Silent
fd67cb4064
III/VC: Port the inner text box background padding fix from San Andreas
Fixes #48
2024-11-01 19:00:01 +01:00
Silent
7d1bd8a9ac
Fix warnings 2024-11-01 17:53:46 +01:00
Silent
75a3f16ffb
III/VC: Improve the way RwD3D8Get/SetRenderState is located
Improves compatibility with other mods and provides a safe fallback.

Fixes #65
2024-11-01 17:33:33 +01:00
Silent
2f79eb1c8f
SA: Fix the driving school cones fix so it doesn't leave cones from "Cone Coil" and "Burn and Lap" behind
Fixes #62
2024-10-31 23:27:53 +01:00
Silent
3017790d44
Fix Hydra's jet thrusters not displaying due to an uninitialized variable in RwMatrix
By B1ack_Wh1te

Fixes #57
2024-10-31 19:07:22 +01:00
Silent
9f705a3dc3
VC: Improve compatibility between the radar placement fix and plugin-sdk
plugin-sdk had to reimplement an inlined
CRadar::TransformRadarPointToScreenSpace, so we need to patch
a stock global variable so this reimplementation can be aware
of our fixes.

Fixes #43
2024-10-30 21:11:06 +01:00
Silent
5aaec719ed
Fixup logo in ReadMe 2024-10-30 19:44:38 +01:00
Silent
cdcf979a54
SA: Fix wheels detaching after they were made invisible when the car explodes
It was fine in the stock game, regressed once SP made the game pick
a random wheel to detach when exploding.

Fixes #47
2024-10-30 19:44:13 +01:00
Silent
2de40406d2
SA: Add even more preemptive checks
Since we are checking the adjacent fixes,
check this one just in case too.
2024-10-30 18:42:25 +01:00
Silent
09bb67220e
SA: Fix incompatibilities with wshps.asi
* Map Screen cursor fix is now split between the cursor thickness
   and the cursor positioning fix. The latter gets out of the way
   for the ws fix.
* Text background padding not scaling to resolution now gives
   priority to the same fix in the widescreen fix.

Fixes #33
2024-10-30 18:28:53 +01:00
Silent
6a524dcf46
VC: When excluding extras from envmap fixes, also set the envmap coefficient to 0.0
Fixes #40
2024-10-29 21:56:38 +01:00
Silent
17baa64613
SA: Use DWLP_USER in the resolution dialog
GWLP_USERDATA was unlikely to cause issues, but it's technically
reserved since we didn't create the window class ourselves.
DWLP_USER is guaranteed to be free for us to use.
2024-10-28 22:36:50 +01:00
Silent
f1d85b825b
SA: Clean CVehicleModelInfo fields from ::Init so they are cleaned up after modloader loads the ASI
Fixes #44
2024-10-28 20:47:34 +01:00
Silent
4cb6edad7c
SA: Also scale the default size of the gamepad crosshair
Fixes #29
2024-10-28 19:51:57 +01:00
Silent
6e5b41c958
SA: Fix focus issues with the resolution selection dialog
Now requests focus the proper way from WM_INITDIALOG,
instead of a manual SetFocus call.

Fixes #49
2024-10-28 19:27:26 +01:00
Silent
a07d7936da
SA: Improve mod compatibility of the new resolution dialog
Should resolve compatibility issues with Renderhook
2024-10-28 18:56:52 +01:00
Silent
e8b3d3f531
SA: Fix EU 1.0 incompatibilities 2024-10-25 21:36:10 +02:00
Silent
d74b104473
Fix a typo 2024-10-25 18:03:34 +02:00
Silent
ea13429022
Update changelog 2024-10-24 09:28:41 +02:00
Silent
3218612792
SA: Fix nitrous recharging faster when reversing the car
By Wesser
2024-10-23 23:59:45 +02:00
Silent
1c4a08ea92
SA: Fix text background padding not scaling to resolution
Debugged by Wesser
2024-10-23 23:59:29 +02:00
Silent
710f1b13ad
SA: Fix Map screen boundaries and the cursor not scaling to resolution
Debugged by Wesser
2024-10-23 23:58:23 +02:00
Silent
97c2c8a094
Work around libflac linking issues with v141_xp 2024-10-23 21:52:50 +02:00
Silent
003b0c6bf1
Add logo to ReadMe 2024-10-23 19:28:33 +02:00
Silent
a40302a11d
Add README.md and changelogs 2024-10-23 19:17:07 +02:00
Silent
fd4fbbacef
III: Rsstore the 'brakelights' dummy as it's vanished from the III PC code 2024-10-21 22:28:52 +02:00
Silent
8e258b0ac5
VC: Reset CWeather::StreamAfterRainTimer when restarting
Fixes saves/new game having the "after rain stream" if you load
a save after playing in rain
2024-10-19 14:33:18 +02:00
Silent
1b3a2dd1fc
Fix UpdateUrl 2024-10-18 13:19:24 +02:00
Silent
2c998b0c9c
Remove return std::move to make use of an implicit move 2024-10-17 23:42:08 +02:00
Silent
de59add19f
SA: Fix heat seeking and gamepad crosshairs not scaling to resolution 2024-10-15 22:10:36 +02:00
Silent
2ce34524c4
Don't use std::forward on a variable multiple times
The previous usage was just wrong,
it may have been subtly broken.
2024-10-14 21:35:03 +02:00
Silent
3d205cdf95
VC/SA: Add Minimal HUD to VC, document it in SA 2024-10-12 20:28:14 +02:00
Silent
8301635efc
SA: Fix post effects not scaling correctly
* Heat haze not rescaling after changing resolution
* Water ripple effect having too high wave frequency at higher resolutions
2024-10-12 16:40:42 +02:00
Silent
9de11adc48
SA: Rename TrueInvicibility to TrueInvincibility
Fixes #28
2024-10-12 11:41:20 +02:00
Silent
bee5b44af1
III/VC/SA: Fix sliding text leftovers causing texts to stay on screen for too long at high resolutions
Also introduced new INI/debug mode options to re-enable those cut features in all 3 games:
* SlidingMissionTitleText
* SlidingOddJobText
2024-10-11 23:11:39 +02:00
Silent
b6450d1853
Changed the resolution scaling variable to a safer one
Improves compatibility with wsfix HUD scaling
2024-10-10 21:02:57 +02:00
Silent
5cb14580b5
III/VC/SA: Fix credits scaling and timing 2024-10-10 18:53:58 +02:00