Repository navigation
compat-common: GetNetworkConnectivityHint without the host export (Wine) - #38
Open
fffluffy-dev wants to merge 1 commit into
Open
fffluffy-dev wants to merge 1 commit into
fffluffy-dev wants to merge 1 commit into
Conversation
Wine 9 and Wine 11.11 have no iphlpapi!GetNetworkConnectivityHint (upstream omonkeyz#293, host shim 2). compat-common imported it statically, so every compat DLL that links it failed to load there, and titles such as GTA VI 1.0.2.1 that import it call an unresolved stub. compat-common now looks the export up at run time and falls back to its own hint when it is missing. Title imports of the function are hooked like the other os_host imports and answered from the same hint as XNetworking: the TOMBOX_CONNECTIVITY setting, else the host's level, else InternetAccess. Checked by comparing the imports of the windows-gnu builds of xcrdapi.dll and d3d12_xs.dll with the exports of Wine 9's builtin DLLs (api sets aside, which Wine resolves itself): before, the only unresolved import was IPHLPAPI.DLL!GetNetworkConnectivityHint; after, none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014vTZArnDeG1xtBcLprpoCq
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.
Part of #35 (upstream
omonkeyz/xbox-emulator#293, host shim 2).Wine 9 and Wine 11.11 do not export
iphlpapi!GetNetworkConnectivityHint. This caused two problems:Changes
gdk/net.rs:Nonewhen it is missing;title_hint()andget_network_connectivity_hint(), which answer from the same level as XNetworking: theTOMBOX_CONNECTIVITYsetting, else the host, else InternetAccess. The cost comes from the host, else unrestricted.os_host/mod.rs: title imports ofiphlpapi.dll!GetNetworkConnectivityHintare hooked, like the other os_host imports. This avoids a replacementiphlpapi.dllthat would hide every other export.tests/net_hint_host.rs.Verification
I compared the imports of the windows-gnu builds of
xcrdapi.dllandd3d12_xs.dllagainst the exports of Wine 9's builtin DLLs (API sets aside):IPHLPAPI.DLL!GetNetworkConnectivityHintwas unresolved;The new test builds (
--no-run) but was not run: CI does not test compat-common, and the container's Wine 9 crashes inwineboot.Generated by Claude Code