Move UnityPlayer loading into the game payload DLL

This commit is contained in:
mkrsym1
2023-06-08 15:27:51 +03:00
parent 30b79c1cb3
commit 88568b374d
2 changed files with 5 additions and 2 deletions

View File

@ -29,5 +29,8 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) {
// ...magic
tp6_setup_patcher(&game, instance, baseModule);
// Load the UnityPlayer module
HMODULE unityModule = LoadLibraryA("UnityPlayer.dll");
return TRUE;
}