Blish-HUD icon indicating copy to clipboard operation
Blish-HUD copied to clipboard

Native DLL support in modules

Open dlamkins opened this issue 3 years ago • 2 comments

Modules which wish to pinvoke native DLLs they bring with them have to extract them or otherwise load them from disk. This is obviously not ideal and is likely to get us flagged more by AV.

REF: https://discord.com/channels/531175899588984842/599270434642460753/889574083560374354

dlamkins avatar Sep 20 '21 19:09 dlamkins

Some ideas include having all native DLLs listed in the manifest for extraction to a central DLL cache dir with the extracted files being tracked by hash.

dlamkins avatar Apr 25 '22 15:04 dlamkins

Somwhat related - .NETs AssemblyLoadContexts have methods that allow altering the loading behaviour of unmanaged DLLs (docs)

I think this would still require extracting to an intermediate location as above, but the implementation work could potentially be bundled into the same change

eksime avatar Apr 25 '22 16:04 eksime