Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse exports for proxy dll generation #759

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Lyrth
Copy link
Contributor

@Lyrth Lyrth commented Jan 17, 2025

Description

proxy_generator now generates an .exports file that it can reuse later, in place of dumping exports from system provided DLL. This avoids using the export arrangement from the GitHub runner's dwmapi DLL (from Windows Server 20xx) that reportedly breaks OpenGL graphics mode for the GUI console, and maybe breaks more things than that.

The .exports files are initially generated under the Intermediate directory (build log will print out the output path during proxy_generator run). These files are then pushed into the repository under UE4SS/proxy_generator/exports, so that for the next build, proxy_generator can use those exports. The .exports files can also be hand-made from dumpbin.exe /EXPORTS output, keeping in mind that the first line being in the form Path: <path/to/orig.dll> and subsequent lines in the form <ordinal> <functionname?> for each export.

I'm not sure which GitHub issues were directly related to the OpenGL white window issue only, so I don't know which ones should be linked here for closing.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How has this been tested?

Built proxy DLL both locally and on GitHub runners (see below). In both cases, dwmapi.dll and xinput1_3.dll proxies are built (xmake f -m "Game__Shipping__Win64" -y --ue4ssProxyPath=C:\Windows\System32\xinput1_3.dll to configure a separate proxy).

In all cases, OpenGL graphics mode for the GUI does not show a white window anymore.

(I think PR actions builds will also work.)

Checklist

  • I have commented my code, particularly in hard-to-understand areas.
  • I have added the necessary description of this PR to the changelog, and I have followed the same format as other entries.

Lyrth added 2 commits January 16, 2025 19:47
- dwmapi version 10.0.19041.4355 (Windows 10 21H2 10.0.19044.5247)
- xinput1_3 version 9.18.944.0 (Windows 10 21H2 10.0.19044.5247)
- removed _dummy.exports
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