Skip to content

Add linux64 gamedata (CS:S x86_64) - #50

Merged
Rushaway merged 2 commits into
masterfrom
feat/linux64-gamedata
Oct 20, 2026
Merged

Rushaway merged 2 commits into
masterfrom
feat/linux64-gamedata

Conversation

@cmer81

@cmer81 cmer81 commented Oct 19, 2026

Copy link
Copy Markdown
Member

Part of moving our ZE server to the CS:S x86_64 build (srcdslab/sourcemod#9, srcdslab/metamod-source#4). SourceMod reads "linux64" keys there and doesn't fall back to "linux", so the ClientPrint detour couldn't be set up (Failed to setup ClientPrint() detour!).

Changes

ConsoleChatManager.games.txt: "linux64" "@_ZL18Script_ClientPrintP9HSCRIPT__iPKc" (the same symbol exists in the x86_64 server_srv.so, build 11003710).

Note: the first argument is an HSCRIPT pointer declared as int, so on x86_64 DHooks reads its low 32 bits. The plugin only compares it to 0, which stays correct in practice. Switching it to objectptr would break plugins that DHookGetParam it.

Testing

On CS:S x64: Successfully detoured ClientPrint().

Script_ClientPrint keeps its symbol on x86_64. Without it the detour can't be
set up there ("Failed to setup ClientPrint() detour!").

Note: the player argument is an HSCRIPT pointer declared as int, so on x86_64
DHooks reads its low 32 bits; the plugin only compares it to 0, which stays
correct in practice.
@cmer81 cmer81 added the x86_64 CS:S x86_64 (64-bit srcds) support label Oct 19, 2026
@Rushaway
Rushaway merged commit 3c908de into master Oct 20, 2026
6 checks passed
@Rushaway
Rushaway deleted the feat/linux64-gamedata branch October 20, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x86_64 CS:S x86_64 (64-bit srcds) support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants