Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit e8df527

Browse files
committed
Force load interposer at startup
1 parent 16c1a63 commit e8df527

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

source/wrapper_generic/dllmain.cpp

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,21 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
166166

167167
if (EnableAggressiveHooking)
168168
{
169-
TargetLibrariesToHook.push_back(TargetEGSOverlayDll);
170-
LoadLibraryW(L"sl.interposer.dll");
169+
TargetLibrariesToHook.push_back(TargetEGSServicesDll);
170+
LoadLibraryW(TargetEGSServicesDll);
171+
172+
if (!LoadLibraryW(L"sl.interposer.dll"))
173+
{
174+
// "Returnal\Returnal\Binaries\Win64\Returnal-Win64-Shipping.exe"
175+
// "Returnal\Engine\Plugins\Streamline\Binaries\ThirdParty\Win64\sl.interposer.dll"
176+
//
177+
// "Hogwarts Legacy\Phoenix\Binaries\Win64\HogwartsLegacy.exe"
178+
// "Hogwarts Legacy\Engine\Plugins\Runtime\Nvidia\Streamline\Binaries\ThirdParty\Win64\sl.interposer.dll"
179+
//
180+
// Insanity. A dedicated configuration file is going to be required at this rate. HL is okay but
181+
// Returnal needs some help.
182+
LoadLibraryW(L"..\\..\\..\\Engine\\Plugins\\Streamline\\Binaries\\ThirdParty\\Win64\\sl.interposer.dll");
183+
}
171184
}
172185

173186
// We probably loaded after sl.interposer.dll and sl.common.dll. Try patching them up front.

0 commit comments

Comments
 (0)