* Fix stack spill for float parameters
* Fix invalid register in vararg float copy
* Fix disp32 encoding, REX operand order and stack offset truncation in x64 JIT
---------
Co-authored-by: Nicholas Hastings <[email protected]>
1) Added initialization of missing properties to avoid calling the damage function with garbage parameters
2) The global parameter vec3_origin has been removed from the code that references the mathlib.lib library; in essence, vector initialization is no different.
* Update PostgreSQL lib version and fix resource cleanup
- update the bundled PostgreSQL/libpq headers and static libraries to 18.4 (resolve#1802)
- adjust pgsql extension link inputs for the newer libpq split libraries, and drop unsupported macOS pgsql builds
- build connection parameters with instead of manually formatting a connection string
- make own and clear its , preventing leaks when prepared statements are executed repeatedly
- close prepared statements with when statement handles are destroyed
- track copied vs borrowed prepared-statement parameter buffers so borrowed strings/blobs are not freed (resolve#1946)
* Rebuild libs
---------
Co-authored-by: Nicholas Hastings <[email protected]>
In the current ongoing effort for sourcemod to fully support 64 bits, we are introducing "virtual address".
# Explanation
Because SourcePawn does not yet support a 64 bits-wide type it's been impossible for any plugins to hold addresses in regular 32-bits wide variable.
A first attempt at solving this issue was made in commit ce1a4dcac0 therein dubbed "PseudoAddress", however this turned out to be an unsatisfactory solution, as any 'high' address if offsetted could turn invalid (or outright be impossible to map).
This leaves us with three alternatives :
- New type
- Convert Address into a handle
- Virtual Address
A new type is the most destructive solution, as it entails breaking every single Address related method. While that solution is still not off the table, we're reserving it as the last attempt should this commit fail.
Converting into a handle type is a good compromise between a brand new type whilst also preserving the Address methods. However, this comes with two issues: the first being that you can no longer offset Address, the second is that we would require authors to free the handle type which will be very confusing. This will likely not be implemented.
# Virtual address
Under a reasonable assumption, we've noted that the average plugin is unlikely to play with more than 4 GB of memory; this shouldn't be too surprising as all valve games were once 32bits and therefore limited to 4GB. Assuming this stays mostly true and a plugin isn't interested with the mapped memory of lesser known modules (like soundlib or matlib), it is fair to assume plugins are unlikely to access more than 4GB of mapped memory. Working with this in mind, we map the memory the plugins are likely to access to our custom virtual address ranges (from 0 to 4Gb, the values of which can fit on 32bits variable). If any memory was missed and plugins were to try an access it later those ranges will be late-mapped to our virtual address ranges until we run out of them.
In order to use virtual addressing, whether on 32 bits or 64 bits. Plugins must now "#include <virtual_address>", as well as use the new SDKCall_VirtualAddress, SDKType_VirtualAddress, LoadAddressFromAddress & StoreAddressToAddress where it's appropriate to.
* Update SDKTools IgniteEntity for Synergy
Add missing parameter for IgniteEntity used in Synergy.
* Update Linux SDKTools Gamedata for Synergy (25.3)
These are only the Linux signatures updated to use the name format.
Note, I do not have the updated Windows signatures at the moment.
* Fix pointer to string marshaling in ClientPrefs for x64
* Fix other cases where pointers were formatted with %x
* Fix warnings in ClientPrefs IsAuthIdConnected
* Initial attempt at compiling against tf2_sdk2013
* compilation fix for css
* Switch to AMTL platform arch defines
* Add CBasePlayer forward decl for dods and hl2dm as well
* Update hl2sdk-manifests
* Add dods to CI
* Actually include am-platform.h
---------
Co-authored-by: Kenzzer <[email protected]>
Co-authored-by: Nicholas Hastings <[email protected]>
* - Fixes for OnPlayerTeleport hook for linux and linux64 systems
- Changed signature call of `CanPlayerTeleport` for linux/linux64 to current used name
- Applied fix at detour class CanPlayerBeTeleported to use standard parameter proceedings for linux
* Created a new registry for Teleportation Checking, marking the old one obsolete for older Sourcemod versions.
* Correction for sourcemod use the correct registry from now on.
* - Fixes for OnPlayerTeleport hook for linux and linux64 systems
- Changed signature call of `CanPlayerTeleport` for linux/linux64 to current used name
- Applied fix at detour class CanPlayerBeTeleported to use standard parameter proceedings for linux
* Created a new registry for Teleportation Checking, marking the old one obsolete for older Sourcemod versions.