Skip to content

An installed DoD Studio loads its own hook DLL into the game again - #916

Merged
ccoventry merged 1 commit into
devfrom
fix/bundled-hook-dll-path
Oct 22, 2026
Merged

ccoventry merged 1 commit into
devfrom
fix/bundled-hook-dll-path

Conversation

@ccoventry

Copy link
Copy Markdown
Owner

Release note: Fixed: an installed DoD Studio loads its own hook DLL into the game again.

Found testing 0.2.0-8: Launch Game started the game through HLAE but without DoD Studio's hook DLL (no in-game window, no ds_* commands, no hook log). This stopped the v0.2.0 release: its stable run was cancelled before publishing, so no v0.2.0 release or tag exists.

Cause. native::patch::default_goldsrc_hooks_dll_path looked for the bundled DLL at <install>\resources\goldsrc-hooks\dodstudio_goldsrc_hooks.dll. Tauri v2's NSIS installer puts bundle.resources beside the exe instead (Tauri's resource_dir, which hd-scripts and localizations already use): the user's install has it at <install>\goldsrc-hooks\dodstudio_goldsrc_hooks.dll. So an installed build never found its bundled DLL. That went unnoticed while the GoldSrc Hooks DLL override was set; #912 made installed releases ignore the override, so they injected nothing.

Fix. The bundled DLL is looked for beside the exe first, then under resources\ (older installs; installer_hooks.nsh still cleans that spot up after the old DoD Tools Studio). With neither, the current spot is named, as before. A missing file still means "not injected".

Tests

  • cargo test -p native bundled_hooks_dll: 3 new, pass (current layout, older layout, neither).
  • clippy (1.98.1, -D warnings) clean for native; rustfmt clean.
  • To check in 0.2.0-9: Launch Game opens the game with DoD Studio's window and ds_debug_status answers, with no override set.

🤖 Generated with Claude Code

Tauri v2 puts bundle resources beside the exe, not under resources\, so installed builds never found the DLL; with the override ignored in releases (#912) the game launched without the hook. Look beside the exe first, then resources\ for older installs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant