-
Notifications
You must be signed in to change notification settings - Fork 21
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
Rewrite using stubgen
#9
Comments
I've long been unsatisfied with the .dll proxying. I have some ideas to make it better, which I think would be similar to how stubgen does it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I merged the code produced by https://github.com/Francesco149/stubgen and this project prior to "massive rewrite". I believe the merged code does not suffer from some issues reported here.
The major differences from this project are:
The major difference from
stubgen
is that to create the dummy swap chain we need access to the originaldxgi.dll
functions, which instubgen
are not available (spinlock wait in theasm_wait_init
). So the hook installation thread exposes a thread local variable, that bypasses the wait inasm_wait_init
.I tested it on my 64-bit Factorio. For 32 bit version to work one needs
check_init_thread
andcheck_init_thread_end
MACROs implemented in trampolines32.asm (they aren't)NOTE: the
dxgi.dll
exports were recreated from Windows 11 22H2 (e.g. build 22621)DXGI-Stub.zip
The text was updated successfully, but these errors were encountered: