getfileattributesexw_detour refactor + Linux Wine fix #14
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.
Linux Wine / Proton Fix
I was able to confirm and reproduce the panic from unreal-shimloader versions 1.0.8+
I tracked this down to a test bug and resolved it by updating my Rust Nightly installation.
No longer encountered issue on the following version:
getfileattributesexw_detour refactor
However, this led me to a new bug forwarded to UE4SS from an issue in the getfileattributesexw_detour function:
This is actually a GetFileAttributesExW call, for what appears to be an existence check.
I confirmed this directory does not exist. So it seems when UE4SS attempts to check if a non-existent directory exists, it encounters an "Insufficient buffer" error from the reroutes and it causes UE4SS to halt.
Changes
Testing
Linux info:
wine-ge-8-26-x86_64 added to Lutris via ProtonUp-Qt.
Installed R2Modman via .exe installer and Lutris automated installer prompts, then set up as you normally would for modding operations. First launch should install C++ Redist for VotV then it's good to go.
Also, if you wanted to float one final DLL my way to test on my Linux setup just let me know.