Implement shared resources fix for HSR

This commit is contained in:
mkrsym1
2023-06-08 20:13:21 +03:00
parent 2584898be6
commit 38dbf82f7f
4 changed files with 27 additions and 1 deletions

View File

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