Echo J
6af4fcc0ee
SilentPatch: Add missing cmath header include
...
It's required for the modf() function (and it isn't implicitly
included on MinGW GCC)
2024-11-28 19:59:07 +02:00
Echo J
33c1ec00d6
SilentPatch: Move a header include in SVF
...
This makes sure the fixed-width integer types are included in SVF.h
2024-11-28 19:59:07 +02:00
Echo J
e270bf652c
SilentPatch: Define a replacement for _stricmp() on non-MSVC
...
MinGW GCC doesn't have this MSVC-specific function
2024-11-28 19:59:07 +02:00
Echo J
24719bb98e
SilentPatch: Move RwEngineInstance definition to headers
...
MinGW GCC can't locate it in some files otherwise
2024-11-28 19:59:07 +02:00
Echo J
77765c3fa5
SilentPatch: Simplify RwIm2DRenderLine function pointer declaration
...
MinGW GCC doesn't seem to unwind the layers of the macro define
properly (which causes it to not find the declaration type)
2024-11-28 19:59:07 +02:00
Echo J
4e2f4f8e03
SilentPatch: Don't define certain Rw* functions if not needed
...
Redefining them can cause strange compile errors with MinGW GCC
2024-11-28 19:59:07 +02:00
Echo J
cf57f43e19
DDraw: Cast the memcpy() source argument
...
This works around the MinGW GCC type strictness
2024-11-28 19:59:07 +02:00
Echo J
ba76a0ed9e
DDraw: Use a pragma for DirectDrawCreateEx export on MSVC
...
The .def file is either going to have issues on MSVC or MinGW GCC
(so replace it with a pragma on MSVC)
2024-11-28 19:59:07 +02:00
Echo J
dbe21b8556
SilentPatchIII/VC/SA: Mark some function pointers as inline
...
MinGW GCC's linker can't find them otherwise
2024-11-28 19:59:00 +02:00
Echo J
109e1c67f4
SilentPatchIII/VC: Remove extern from ppUserFilesDir variable definitions
...
This fixes compile warnings with MinGW GCC
2024-11-28 19:51:47 +02:00
Echo J
a3d9c73a8b
SilentPatchIII/VC/SA: Add GCC/Clang-compatible safebuffers equivalent
...
And switch to a common define for this attribute (this fixes
compile warnings on MinGW GCC)
2024-11-28 19:51:47 +02:00
Echo J
84a737fb88
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-28 19:51:47 +02:00
Echo J
d9e8480b6d
Set Windows defines earlier
...
This avoids compile warnings on MinGW GCC (because standard C++
headers eventually import the Windows stuff)
2024-11-28 19:51:47 +02:00
Echo J
0bf574a5b8
Use lowercase names for Windows headers
...
This fixes missing header issues on a case-sensitive filesystem
with MinGW GCC
2024-11-28 19:51:47 +02:00
Echo J
730afa5848
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-28 19:51:47 +02:00
Silent
50c3a47cd3
SA: Fix an incompatibility between wshps.asi, making credits huge
...
Fixes #75
2024-11-25 21:26:48 +01:00
Echo J
d191bdf3b4
SilentPatchSA: Fixup the MSVC inline assembly statements (part 3)
...
Also clean them up in general
2024-11-18 19:33:06 +01:00
Echo J
5738eb5d75
SilentPatchSA: Fixup the MSVC inline assembly statements (part 2)
...
Also clean them up in general
2024-11-18 19:33:06 +01:00
Echo J
94f967245b
SilentPatchSA: Fixup the MSVC inline assembly statements (part 1)
...
Also clean them up in general
2024-11-18 19:33:06 +01:00
Echo J
5d90ed55d7
SilentPatchVC: Fixup the MSVC inline assembly statements
...
Also clean them up in general
2024-11-18 19:33:06 +01:00
Echo J
7819f30c75
SilentPatchIII: Fixup the MSVC inline assembly statements
...
Some of them use the deference operator incorrectly (also clean them
up in general)
2024-11-18 19:33:06 +01:00
Silent
73600974c5
SA: Fix 1.0 EU executable crashes when losing police pursuit and triggering the replay
...
US and EU no-DVD executables were decrypted slightly differently, and the patches
did not account for that previously.
Fixes #76
2024-11-18 18:32:09 +01:00
Echo J
c733f3e7d1
III: Fix the missing window icon
...
For some reason GTA 3 sets the hIcon value in WNDCLASSA struct to
NULL which causes the window icon to be the default one (this was
fixed in Vice City)
2024-11-16 22:20:03 +01:00
Silent
16c7a859d8
SA: Fix a missing null check in CTaskComplexSequence::Contains
2024-11-15 12:25:18 +01:00
Silent
47e7ab6b1f
SA: Call the game's own User Files path getter to make device_remembered.set respect Portable GTA's changes
...
Fixes #105
2024-11-09 22:42:32 +01: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