Conversation
- Clone steamclient64.dll into bin\diversion64.dll and load as client_hModule with fallback - Transparently redirect GetModuleHandleA/W/ExA/ExW to diversion64.dll for CR compatibility - Hook LoadModuleWithPath with g_HooksInstalled atomic synchronization barrier - Enhance CloudRedirectHost library lookup order and logging
|
Can this prevent the latest Capcom games from crashing on launch? |
Author
Onimusha and Dragon's Dogma 2 are working fine now. The others still need to be tested. |
…timeout - Prioritize loading <sha256>.toml local cache before attempting remote download - Eliminate 24s network timeout blocking SteamUI from loading unhooked steamclient64.dll - Update PatternLoader and IPCLoader logs from 'cache fallback' to 'cache'
aitronz
added a commit
to aitronz/OpenSteamTool-exp
that referenced
this pull request
Sep 13, 2026
…compatibility (mmxlyo)
…he atomicity - SteamUI hooks: - Fix string length matching in IsSteamClientPath/W (17 for steamclient64.dll, 15 for steamclient.dll) - Abort diversion and return original handle on LoadModuleWithPath timeout to prevent race conditions - Lower hook initialization polling interval from 100ms to 10ms to reduce startup latency - Implement Win32 contract validation and refcount management in hkGetModuleHandleExA/W - Add lock-free atomic guard for pending removals in RunFrame to eliminate UI thread lock contention - Ensure idempotent system Detour attach/detach and synchronize with transaction commit - Runtime & DllMain: - Clone and inspect diversion module using wide Win32 APIs (CopyFileW, GetFileAttributesExW) - Break diversion copy retry loop early on non-sharing errors - Pin module in memory via GetModuleHandleExA PIN flag to prevent premature unloading - Skip thread joins and Detour cleanup on process termination (pvReserved check) to avoid loader-lock deadlocks - Use explicit memory_order acquire/release semantics for runtime atomic state flags - RemoteToml cache: - Implement atomic cache writes using PID-isolated temp files and MoveFileExW replacement - Defer cache directory creation until HTTP 200 is confirmed to prevent empty directories - Clean up temporary files on rename failure - CloudRedirectHost: - Safe error-code based library existence checks and path resolution - Null out all function pointers and module handles on shutdown to prevent dangling calls
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.
Fixes #191