Use a separate executable for dedicated server

The dedicated server still has directx dll imports which will cause issues with ReShade or 3DMigoto, or trying to load it on a headless machine with no directx installed. The imports have to be cleared to avoid issues. The most convenient approach is to do this with a separate exe rather then patching it in runtime.
This commit is contained in:
Amos
2021-12-29 02:16:21 +01:00
parent bc8f9400d3
commit b514f928a6
4 changed files with 24 additions and 14 deletions

View File

@@ -48,7 +48,11 @@
#ifndef SDKLAUNCHER
namespace
{
MODULE g_mGameDll = MODULE("r5apex.exe");
#ifdef DEDICATED
MODULE g_mGameDll = MODULE("r5apex_ds.exe");
#else
MODULE g_mGameDll = MODULE("r5apex.exe");
#endif // DEDICATED
MODULE g_mRadVideoToolsDll = MODULE("bink2w64.dll");
MODULE g_mRadAudioDecoderDll = MODULE("binkawin64.dll");
MODULE g_mRadAudioSystemDll = MODULE("mileswin64.dll");