Commit Graph

3 Commits

Author SHA1 Message Date
A1mDev
6cf4b973b5 Add platform-specific DETOUR macros for TF2 (Linux i386) and CSGO (Windows)
This PR introduces a new macro, DETOUR_CUSTOM_STATIC2, to unify detour declarations
across different platforms and Source Engine versions, improving code readability.

- Linux i386 (TF2) → uses __attribute__((regparm(2)))
- Windows (CSGO) → uses __fastcall
- All other platforms → falls back to standard DETOUR_DECL_STATIC2

By consolidating detour declarations into a single macro, code is easier to read,
maintain, and less error-prone across different platforms and ABIs.
2025-10-23 07:26:03 +07:00
Adrian-Stefan Mares
45a802a965 Support l4d and l4d2 SDKs 2024-03-28 22:38:40 +01:00
Ryan Stecker
527214a86b Reorg and add gitignore. 2024-02-07 18:35:31 -06:00