Open BramTeurlings opened 9 months ago
712020:c26664a4-c3de-4473-a0b4-5a76804d5628:
I discussed this with Jurjen and Kevin and they think that doing this in SimulatedReality.dll directly is actually a really good feature. Perhaps we can do this in the SR Platform repo instead of our addon.
Instead of copying the DLLs, we can load them inside of a stripped version of the addon that doesn’t have any calls requiring the SR dlls.
This addon then loads all the SR DLLs using the registry path (and depending on 32/64 bits). After this, it will load the actual srReShade addon which has all of the SR logic and depends on the just-loaded SR DLLs. Then it will use GetAddressProc to call functions on the real srReShade addon.
This way we can avoid having to ever copy DLLs again.
Originally reported by , imported from: Automatically load DLLs in srReShade addon