Repository navigation
Conversation
Preserve shutdownserver before _restart, move SteamAPI_Shutdown before GL_Shutdown once per engine lifetime, and suppress the late engine import call. Add official gamedata requirements and record six passing runtime lifecycle checks. Co-Authored-By: Codex <codex@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix a SvEngine shutdown-order defect on Sven Co-op. The engine's
_restartpath skipsSteamAPI_Shutdown, and its normal-exit call runs too late (afterGL_Shutdown), leaving Steam client threads alive until process teardown — reproduced as0xC0000409afterosprey -> _restart -> quit.For SvEngine (
svencoop-8948/svencoop-10257) only:SteamAPI_ShutdownIAT hook that suppresses the engine's late, restart-skipped call.GL_Shutdown(HWND, HDC, HGLRC)through gamedata and inline-hook it to invoke the saved Steam API original once per engine lifetime, before forwarding all three arguments.The manifest gains a conditional group requiring the
GL_Shutdownfunction for both Sven snapshots, so the pruned catalog now carries theengglobal plusGL_Shutdown.LoadEngineresolves the new symbol before registering the DLL-notification callback.Validation: Windows x86 Sven 10257. The old ThreadGuard reproduced
0xC0000409; the fixed DLL returned MetaHook's normal exit code 0 for the same control. Six further runs covered zero, one and three restarts with HalflifeCLI enabled and disabled; every restart restoredospreyand native RCON and all six processes exited 0. Release build and all 11 gamedata snapshots passed validation. Sven 8948 has Windows code-path and catalog verification only; other engines and Renderer compatibility were not runtime-tested.Merge component PRs before updating aggregate gitlinks; no automatic merge is requested.
🤖 Generated with Claude Code