ReShade + SpecialK: Automatically export DLL names #920
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.
One more piece of work for #894.
This PR adds the SpecialK and ReShade DLL names to the
WINEDLLOVERRIDES
, without any.dll
extension if it exists. This means custom DLL name should be loaded by the game without any DLL overrides having to be set by the user. Unsure why this wasn't done in #881, but because of that we didn't do it in #912. I guess I thought it would be more complex than this 😅The logic here is a bit messy, as it will export DLL names twice in some scenarios. If we leave the DLL names as defaults, for example
dxgi.dll
, then it will technically be inWINEDLLOVERRIDES
twice. This shouldn't cause issues, though. Logging just might look a little odd at first :-)The DLLs will only be exported for SpecialK if it actually reaches the block for installation, so they won't be exported in any other case. They were not exported before afaik so I guess the game just picked it up manually, hopefully this won't break anything :-)
This is mostly untested, so will need more testing to ensure this doesn't break anything.