4 ms·
This trick is used by a number of game mods, by way of providing a fake DirectX dll that monkeys with the internal game code and then calls the actual DirectX l
by zyxley 11y ago
This trick is used by a number of game mods, by way of providing a fake DirectX dll that monkeys with the internal game code and then calls the actual DirectX library.
ENBoost is probably the most prominent at the moment, and is considered nigh mandatory by modders for Skyrim, the Fallout series, etc, because it lets you override the game engine and use free RAM (beyond the game engine's 2GB or 4GB limit) as an extended cache for your video card.
- colejohnson66 11y agoI personally use this trick on Rocksmith 2014 to add custom DLCs
- claudius 11y agoBut this should also be possible without the game executable looking up DLLs in its CWD? A mechanism analogous to LD_PRELOAD_PATH on Linux should work equally well or the mod could provide its own binary, load its dll and then run the main game binary? In other words, I don’t understand why “load DLLs from CWD” is vital to the workings of such mods?
- SolarNet 11y agoWell it's easier to explain to users of the mod at least (dropping files in a folder). Also replacing the binary is problematic because that will cause updating and DRM problems.
- lawl 11y agoWith an LD_LIBRARY_PATH they'd have to drop 2 files into the folder, the dll and a wrapper that sets the library path, I don't see the issue...
- SolarNet 11y agoYes of course. But then the users have to run the game with the wrapper file. Not a large inconvenience though. The Linux system is better.